How to connect to sqlplus through Unix

Hi ,
Any body can help me how to connect sqlplus from the shall script(.ksh)
I am using below command, but nor working
VAR=`$SQLPLUS -s id/password << EOF
SQL Query
EOF`

790264 wrote:
Hi ,
Any body can help me how to connect sqlplus from the shall script(.ksh)
I am using below command, but nor working
VAR=`$SQLPLUS -s id/password << EOF
SQL Query
EOF`
bcm@bcm-laptop:~$ ./show_sql.sh
cat show_sql.sh
sqlplus user1/user1 << EOF
spool now.lis
select sysdate from dual;
exit
EOF
cat now.lis
SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 12 18:35:54 2011
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> SQL>
SYSDATE
2011-08-12 18:35:54
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select sysdate from dual;
SYSDATE                                                                        
2011-08-12 18:35:54                                                            
SQL> exit
bcm@bcm-laptop:~$

Similar Messages

  • How to connect to website through computer if i do not use internet through phon's sim

    how to connect to website through computer if i do not use internet through phon's sim

    Connect through wifi.
    Turn off Cellular data through settings __ General __ Network __ Cellular Data on/off

  • How to connect to Internet through a LAN

    Hi everybody !!!
    Please show me how to connect to Internet through a LAN (through another computer).
    On Windows XP system, i use the following informations to do that:
    + My IP: 192.168 .1.45
    +subnet mask: 255.255.255.0
    +default getway: 192.168.1.12 (IP of another machine)
    +Preferred DNS server: 85.255.192.2
    +Alternate DNS server: 195.131.52.130
    and in IE i use the proxy server: 192.168.1.12:8080
    Thanks alot !!!

    Just how is the one computer connecting to the internet? What type of connection does the office have, DSL, Cable or is it a Data connection through a Cell phone provider.
    I doubt all other computer are doing Ad-Hoc but are probably Sharing the Internet connection with Internet Connection Sharing from that one Windows base PC.
    All you khave to do is Connect to that same WiFi SSID name and have the correct password for it.

  • How to Connect MySQL Database Through JTable?

    Hi,
    How to Connect MySQL Database Through JTable? anyone of u knows these concept please send me coding of that Part..
    Thanks,
    Guru..

    Start by reading the tutorials. There's a section on Swing which shows you how to use tables and a section on JDBC which shows you how to use SQL.
    And you can always search the forum as well since there are working examples of both posted on the forum.
    If you need further help with a specific problem then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • How to connect oracle data through BlazeDS in flex 4

    How to connect oracle data through BlazeDS in flex 4

    Hi
                   If u want to connect to the database oracle just paste the Ojdbc14.jar file into the lib folder of blazeds project..
                             Normally blazeds distribution version contains blazeds.war file... upload that war file to the tomcat or any other application server..
                          u will get the build path and in lib folder paste the ojdbc14.jar file to connect to the oracle and do u r stuff at server side java ....
                      if this will reslove ur problem please mark as answered..

  • How we connect .db file through PI

    Hi everyone,
    Please guide how we connect .db file through PI

    Hi Ram - what do you mean by connect .db file? Do you want to process .db files? or want to connect to MS access database?
    Please elaborate.. 

  • How to connect oracle database in UNIX OS

    Hi All
    can any one help me on how to connect to oracle database in UNIX system(PUTTY)..
    Generally what i am doing is
    1) login with my user name
    2) trying to connect oracle using the command sqlplus -s username/password
    showing error SQLPLUS: not found
    Do i need to go any path where oracle is install? iF yes, how to find out that? or any other step to connect? Please help me by giving the sequence of steps...
    Regards
    Prem Raj Dasari

    What is your database version?
    can any one help me on how to connect to oracle database in UNIX system(PUTTY)..
    Generally what i am doing is
    1) login with my user name
    2) trying to connect oracle using the command sqlplus -s username/password
    showing error SQLPLUS: not found
    Do i need to go any path where oracle is install? iF yes, how to find out that? or any other step to connect? Please help me by giving the sequence of steps...You need to source the database env file before running sqlplus.
    R12 -- Maintaining Oracle E-Business Suite Documentation Set
    http://docs.oracle.com/cd/B53825_08/current/html/docset.html
    11i -- Maintaining Oracle Applications Documentation Set
    http://docs.oracle.com/cd/B25516_18/current/html/docset.html
    Thanks,
    Hussein

  • How to Connect my N79 through Internet on Laptop?

    Hi Friends ,
    i am facing a problem while connecting my N79 through Internet on my laptop . i am using USB Modem for Internet Connectivity. And i want to share this Internet on my N79 through Wireless LAN . i am using Windows Vista . Please tell me how to Configure my WLAN on my laptop . so that i can use it to browse through my N79.
    Please Help Me Guys .....................!!!!!!

    Yes, it can be done.
    1) Enable "Internet Connection Sharing" on the laptop and share the connection that refers to your USB modem.
    2) Ask your ISP what the IP addresses of their nameservers are and make a note of them.
    3) Configure the laptop's wireless adapter in ad-hoc mode and assign it a static address on the wireless network.
    4) Configure the N79 in ad-hoc mode as well, and give it a static address on the wireless network. Enter manual settings telling it to use the IP address of the laptop as its default gateway and to use the IP addresses given to you by your ISP as its nameservers.
    With this, you can use the laptop as your phone's portal to the Internet, but only with your phone. This will only work with one device at a time. If you want to use more than one device at the same time you're better off buying a real wireless router to which you will be able to connect your laptop, your phone and any other wifi-aware device you might have.
    NB: I don't use Windows on my machines and therefore can't give any specific information about doing this. The advanced settings needed for the phone will be described in the manual.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How to connect 10g database through Enterprise manager???

    Hi All,
    I want to connect the database through Enterprise manager.
    My database is on 10g. Version is 10.1
    Please tell me the procedure to connect the database through E.M.
    Thanks and Regards,
    Prathamesh.

    Are you thinking of the Enterprise Manager supplied with Oracle9i? If yes - it doesn't work quite that way ... and the 9i java OEM is not compatible.
    Use the enterprise manager supplied with the 10g database, called the dbconsole (look for a service or start it using 'emctl start dbconsole') and access it using http://{localhost}:5500/em
    If that doesn't satisfy you, load the updated version of the OEM 9i java standalone from the 10g client disk.

  • How to connect Oracle database  through Microsoft ODBC?

    My ODBC Configuration:
    DSN name is :db
    Username : india
    Server :db.world
    Now, i am trying to connect with oracle database through SQL*plus or TOAD.
    But, it is giving the following error.
    ORA-03121: no interface driver connected - function not performed
    Database version : 9.2.0.1.0
    Operating System : Microsoft Windows XP
    ODBC Version : 2.575.1117.00
    I am trying to connect with the database like this:
    Username : india
    Password : india
    Database : ODBC:db
    Can i connect like this otherwise whether i need install any other supporting driver?

    Now, i am trying to connect with oracle database
    through SQL*plus or TOAD.
    But, it is giving the following error.
    ORA-03121: no interface driver connected -
    function not performed
    I am trying to connect with the database like this:
    Username : india
    Password : india
    Database : ODBC:db
    As already stated, you can not use the DSN in SQL*Plus (nor TOAD, afaik)!
    I can reproduce the error message with the following:
    C:\>sqlplus a/b@ODBC:c
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 4 21:34:58 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    ERROR:
    ORA-03121: no interface driver connected - function not performedLooking up the message, it says:
    Cause: A SQL*Net version 1 prefix was erroneously used in the connect string
    Looks like this has nothing to do with your DSN - it is more a matter of not using a proper connection string.
    If 'Test Connection' works then you should probably proceed to work with Crystal Reports, using the DSN in question.
    However, you should note that the old MS ODBC driver for Oracle was designed for OCI 7 (and for databases 7.x-8.x) and is now considered obsolete by both MS and Oracle.
    Deprecated MDAC components and MS KB Article 244661.
    Use the Oracle ODBC driver included with a supported Client version instead.
    Edit:
    Clarifying and adding references.
    Message was edited by:
    orafad

  • How to connect to database through TOAD(using tnsnames & sqlnet)

    Hi All,
    Hope everyone doing fine.. Actually i am new to oracle. Oracle9i and TOAD 9.7.0.51 are installed in my office PC. When I try to connect to the database through TOAD i am getting ORA-12560: TNS:protocol adapter error.
    And i've the tnsname details.
    Now i want to connect to the database.But i am not aware of the process about what to do. So Can anyone please help me on the above problem.
    Please give the steps to follow(one by one)
    Thanks,
    mkr

    Oracle9i and TOAD 9.7.0.51 are installed in my office PC.sqlplus> connect / as sysdba
    connected.
    Check your $ORACLE_HOME/network/admin/tnsnames.ora
    If it does not exist create as an example.
    example
    DBX =
    (DESCRIPTION =
    (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = <host or ip>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME =<sid_name>)
    set ORACLE_SID=SID
    tnsping DBX
    try to connect by toad after that it should work...

  • HT1600 How do connect my computer through AppleTV

    How Do I connect Apple TV to my computer?

    Enable home sharing in iTunes and enter the home sharing ID you create into AppleTV.  You will also need to enter your AppleID into the AppleTV iTunes Store menu to beable to access your any iTunes content you have on iCloud.

  • How to connect access database through oracle sql prompt

    i want to connect access database via oracle , i am trying to import all the data in Access table into oracle table how it is possible .
    A.R

    The simplest way, if You have already created tables in Oracle DB, is to open the Access MDB, link Oracle tables via ODBC and build a query to append rows reading from Access tables to Oracle tables.
    Hope this helps
    Max

  • HOW TO RUN BODS JOB THROUGH UNIX SCRIPT

    Dear Experts
    Please provide me the way how to call a job by a script .
    I have used Export Execution Command as recommended by below links
    http://scn.sap.com/docs/DOC-34648
    http://scn.sap.com/community/data-services/blog/2012/08/22/sap-bods--running-scheduling-bods-jobs-from-linux-command-line-using-third-party-scheduler
    But I am not able to locate .sh  file in unix server .
    This is required to call a job after completion of parent job.
    Thanks
    Anupam

    You can check the status in "SAP Business Objects Data Services management Console", Below are the steps
    Login in SAP Business Objects Data Services management Console
    Click on Batch Job
    Select the local repository
    Then check your Job Execution status from there
    For your second query there are two ways one is do the same activity what you have done in DEV.
    below are the steps
    Login in SAP Business Objects Data Services management Console and export the Jobs using export execution command from batch job
    SHELL Scripts will be exported in Job Server Log
    Move that SHELL script as per your location
    Update the User environment variable same as DEV only difference is SID is changed
    Thanks,
    Daya

  • How to Connect to LDAP through SOA is it possible using BPEL

    Hi Guys,
    I have a requirement that how to access to LDAP system using BPEL process.
    do we need to write any java code to perform a few operations in to LDAP.
    Can you please tell me any one across this sceneario.
    Thanks in advance.
    Your help is more appreciate. this is urgent for us.
    Thanks.
    Chandrasekhar

    Hi Chandrasekhar
    1. Yes, there are many ways you can integrate AD with BPEL kind of indirectly. See some of the posts given below.
    oracle soa and active directory integration
    Weblogic administrator account is inactive after enabling DB Authenticator
    Also, once AD is integrated with Weblogic, using Admin Console etc, you can use the out of box REST services for quick testing. You can pretty much get and read all the stuff for any user/role/group/mappings etc. But its just ReadOnly and you cannot modify data on LDAP side. The below link should work for any security provider configured with your weblogic like DefaultAuthenticator or External AD integrated.
    http://soaserverhost:soaserverport/integration/services/IdentityService/identity
    Thanks
    Ravi Jegga

Maybe you are looking for

  • Parse a long file

    Hello, I have to parse a long file....the concept of that file it is that there are several billings included, and for each billing it is separated for an special escape character ( FF character , i tihnk it tells the printer to skip page ) Well, I h

  • Spry in Wordpress

      Greetings from Sunny South Florida. The site i created contains a spry drop down menu which works fine when tested in dreamweaver  but when i upload the site to Word Press the spy menu doesnt work properly. What it  does is the whole menu bar moves

  • Fail to retrieve the logon ticket,please contact the administrator

    I Still get an error "Fail to retrieve the logon ticket,please contact the administrator" here is my status 1. Set the values "2" for login/create_sso2_ticket and "1" for login/accept_sso2_ticket in DEFAULT profile at RZ10. 2. Current configurationn

  • How to transfer some photos from iPhoto to external hard drive

    Hi. I can't work out how to transfer some iPhoto photos to an external seagate hard drive I bought from the apple store. Help please! It should be simple...

  • IPTC tag names used for text output in BorderFX export

    Does anyone have a reference list?  Nothing is documented or forthcoming on the BorderFX site.  For example, I have a photo with IPTC entries on the Aperture metadata/aka info tab under the Image section for both City and Location.  BorderFX has a bu