- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Some error in Bourne shell script
Operating System - Linux
1752800
Members
6160
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 09:33 PM
тАО07-04-2006 09:33 PM
Hi All
I am new to this bourne shell script.When i try to call oracle stored procedure as command line arguments it is giving some error
= = = = = = = = = = = = = = = = = = = = = = =
POSITION','20060605','Avinash','xyx.csv','Y','Y',200 ();
*
ERROR at line 2:
ORA-06550: line 2, column 11:
PLS-00103: Encountered the symbol "," when expecting one of the following:
:= . ( @ % ;
ORA-06550: line 2, column 55:
PLS-00103: Encountered the symbol "(" when expecting one of the following:
) ,
= = = = = = = = = = = = = = = = = = = = = = =
#!/bin/sh
# File input_file_audit.sh
echo "Before Calling the Function "
. common_functions.sh
input_file_audit()
{
echo "in Function Befoire Calling Common Function File"
DATA_TYPE=$1
SNAPSHOT_DATE=$2
SOURCE_SYSTEM_ID=$3
POSITION_DATA_FILE=$4
HEADER_VALIDATE=$5
TRAILER_VALIDATE=$6
TOTAL_RECORDS=$7
echo "Testing to Connect to the DataBase"
Test_db_connect
sqp $LOG_FILE P_INPUT_FILE_AUDIT "'$DATA_TYPE','$SNAPSHOT_DATE','$SOURCE_SYSTE
M_ID','$POSITION_DATA_FILE','$HEADER_VALIDATE','$TRAILER_VALIDATE',$TOTAL_RECORD
S"
if [ $? -eq 0 ]
then
echo "Procedure P_INPUT_FILE_AUDIT completed successfully" | tee -a $JOB_LOG_F
ILE
else
echo "Procedure P_INPUT_FILE_AUDIT failed to complete" | tee -a $JOB_LOG_FIL
E
fi
}
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
#! /bin/sh
# File common_function.sh
### Function to Check Oracle Database Connectivity
#Takes no input Parameters
Test_db_connect()
{
sqlplus -s <
Solved! Go to Solution.
- Tags:
- SQL
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 10:43 PM
тАО07-04-2006 10:43 PM
Solution
Hi,
can I suggest you insert a debug statement into the sqp function, just before the sqlplus step to show exactly what is in $args.
If this is ok, replace the $proc ($args) call with the actual code of the procedure.
Other people had similar problems, but never bother to report back:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1026139
can I suggest you insert a debug statement into the sqp function, just before the sqlplus step to show exactly what is in $args.
If this is ok, replace the $proc ($args) call with the actual code of the procedure.
Other people had similar problems, but never bother to report back:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1026139
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2006 11:13 PM
тАО07-04-2006 11:13 PM
Re: Some error in Bourne shell script
And just to clarify, the #!/bin/sh line is actually running HP's POSIX shell, a superset of the Korn shell. Also, /bin is only found in older SysV Unix systems and BSD systems like Linux. On HP-UX (and Solaris and other modern SysV's) the directoru is really /usr/bin. /bin in HP-UX is not a directory at all but a temporary transition link.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP