03-23-2002
Jimbo,
I want to know why you are using myroot.sh when executing scott.sh will do the required job. Are you using myroot.sh to change the user or is it useful in other way?
Say, if I want to run the sql query without su, can I just use scott.sh and dont use myrott.sh?
I tested it and if you run scott.sh, then you get the desired result.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI ALL
i have a requirement like this. i have to write a shell script to run a sql query. DB is oracle. once the query is run, the results of the query has to be published in a data file. can you please advice me how to go about it. i am absolutely new to shell scripts and this is a part of my job. (14 Replies)
Discussion started by: ragha81
14 Replies
2. Shell Programming and Scripting
Hi ALL,
I need an help in connecting to oracle database, executing a select query and printing it on the screen. Can any one please write a simple code or psuedo code and let me know.
select query returns multiple values( say select name from emp)
Thanks in advance
LM (1 Reply)
Discussion started by: lijju.mathew
1 Replies
3. Shell Programming and Scripting
Hello,
I have a sh script excuting a sql query through sqlplus. I am having trouble making my date equal to the date of the server time in the sql script. How can i call the server date from my query?
Thanks (2 Replies)
Discussion started by: kingluke
2 Replies
4. Shell Programming and Scripting
query sql using shell script, is it possible?
my friend told me to do a file.sql and link to my shell script, but can i query sql using shell script?
thanks in advance! (2 Replies)
Discussion started by: kingpeejay
2 Replies
5. UNIX for Dummies Questions & Answers
I want to perform few post-session success tasks like update a status to 'true' in one of the sql database table, update date values to current system date in one of the configuration table in sql. How do i achieve this in a post session command?syntax with example will be helpful. (3 Replies)
Discussion started by: nathanvaithi
3 Replies
6. Shell Programming and Scripting
Hi,
I need to call a shell script present on solaris server from within a PL / SQL block.
Kindly suggest..
Thanks
Sudhir (1 Reply)
Discussion started by: sudhird
1 Replies
7. Shell Programming and Scripting
Hi all,
My reqirenet goes like this.
Need to execute one select statement within the script and send a mail to the users with the number of records fecthed from the query.
Please help..
Thanks. (3 Replies)
Discussion started by: Achiever
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have one SQL file prepared in UNIX and one script that is executing that.
In SQL i have Update and create queries.
I want to introduce conditions in SQL file (in UNIX) that if either of the create or update query failes whole transaction should be rollback.
I just have 1 create... (2 Replies)
Discussion started by: abhii
2 Replies
9. Red Hat
hey , i am using this code to store value of a sql query and and then use
it in other query but after some time , but it is not working. please help
#!/bin/bash
val_1=$( sqlplus -s rte/rted2@rel76d2 << EOF
setting heading off
select max(stat_id) from cvt_stats;
exit
EOF
)
nohup... (5 Replies)
Discussion started by: ramsavi
5 Replies
10. UNIX for Beginners Questions & Answers
Hello~
I have a requirement to write a shell script which will connect to the oracle database and run a select count(*) query on a table.
The script should succeed only when the count returns a number greater than zero. If the count returns zero, the script should fail.
Can someone please... (3 Replies)
Discussion started by: Naren.N
3 Replies
LEARN ABOUT SUNOS
appclient
appclient(1M) Application Server Utility appclient(1M)
NAME
appclient - launches the Application Client Container and invokes the client application packaged in the application JAR file
SYNOPSIS
appclient -client client_application_jar [-mainclass client_application_main_classname|-name display_name] [-xml sun-acc.xml file] [-tex-
tauth] [-user username] [-password password]
Use the appclient command to launch the application client container and invoke a client application that is packaged in an application JAR
file. The application client jar file is psecified and created during deployment either by the deploytool or by using the asadmin deploy
command.
The application client container is a set of java classes, libraries and other files that are required to execute a first-tier application
client program on a Java Virtual Machine (JVM). The application client container communicates with the Application Server using RMI-IIOP.
The client.jar that is retrieved after deploying an application , should be passed with the -client option while running the appclient
utility. The -mainclass and -name options are optional for a single client application. For multiple client applications use either the
-classname option or the- name option.
-client required; the name and location for the client application jar file. The application client JAR file is specified
and created during deployment, either by the deploytool or by the asadmin deploy command.
-mainclass optional; the full classname of the main client application main() method that will be invoked by the Application
Client Container. Used for a single client application. By default, uses the class specified in the client jar. The
class name must be the full name. For example, com.sun.test.AppClient
-name optional; the display name for the client application. Used for multiple client applications. By default, the dis-
play name is specified in the client jar application-client.xml file which is identified by the display-name
attribute.
-xml optional if using the default domain and instance, otherwise it is required; identifies the name and location of
the client configuration XML file. If not specified, defaults to the value of $AS_ACC_CONFIG identified in
asenv.conf file.
-textauth optional; used to specify using text format authentication when authentication is needed.
Example 1: Using the appclient command
appclient -client appserv/bin/myclientapp.jar
-mainclass com.sun.test.TestAppClient -xml sun-acc.xml scott sample
Where: appserv/bin/myclientapp.jar is the full path for the client application .jar file, com.sun.text.TestAppClient is the full Java pack-
age name of the main client application, scott and sample are arguments to pass to the application, and sun-acc.xml is the name of the
client configuration XML file. If sun-acc.xml is not in the current directory, you must give the absolute path location; otherwise the rel-
ative path is used. The relative path is relative to the directory where the command is being executed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Unstable |
+-----------------------------+-----------------------------+
package-appclient(1M), asadmin(1M)
Sun Java System Application Server March 2004 appclient(1M)