- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need Help
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО12-20-2001 06:48 AM
тАО12-20-2001 06:48 AM
Need Help
I'm new to the scripting and would like to get advice from all dear friend on how to develop a scriptas follow :
I have two server. Server A has Oracle database and server B has Informix database. I have an application residing on server B that need to do query to server A on the Oracle database. Unfortunately, I do not have ODBC driver for both database. The only thing that I can think of is using a c shell script that need to pass a parameter in server B, then connect to a store procedure in server A. Then the store procedure pass back the result to the c script and then the script write to Informix database. But I could have a clue on how to write this. Please Help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 06:57 AM
тАО12-20-2001 06:57 AM
Re: Need Help
remsh serverA "${ORAHOME}/bin/isql login@password query.sql"
the other thing to do, can you start an Oracle listener on server B, then you could run the query localy instead of using remsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 07:01 AM
тАО12-20-2001 07:01 AM
Re: Need Help
You can use remsh in order to run the script form the server B in the server A. If you redirect the output to a file this file resides in the B server.
You can try to start with a simple script in order to learn how remsh works like this:
remsh hostA -n cat file > /tmp/fileout
You can see that the output will be in the /tmp directory of the server B.
Hope this help you.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 07:09 AM
тАО12-20-2001 07:09 AM
Re: Need Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 07:17 AM
тАО12-20-2001 07:17 AM
Re: Need Help
You probably from your application can run by a call system statment the script that do the remsh, then you can use a procedure into informix to do an insert into a table and then you can check this table in order to know if you must do something.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 07:26 AM
тАО12-20-2001 07:26 AM
Re: Need Help
then
do command
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 07:51 AM
тАО12-20-2001 07:51 AM
Re: Need Help
My shell script as follows and I need a c script:
1. I need to pass in a employee name to get his/her salary. How to pass it in?
sqlplus -s user/Password@oracle @script.sql $1
tail -2 $1.lst > $1.tmp
mv $1.tmp $1.lst
2. In the same script I need to return the value. If file exist then I need to return a 1 value and if file did not exist then I return 0 value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 08:38 AM
тАО12-20-2001 08:38 AM
Re: Need Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2001 09:23 AM
тАО12-20-2001 09:23 AM
Re: Need Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2002 04:46 AM
тАО01-02-2002 04:46 AM
Re: Need Help
Something like this:
sqlplus -s user/Password@oracle @script.sql $1
tail -2 $1.lst > $1.tmp
mv $1.tmp $1.lst
if [ -f $1.lst ] # file exists
then
return 1
else
return 0
fi
Happy new year!!
Justo.