Sqlplus connection

Hi Guys
I have Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 with RAC configuration running on HP-UX.
When I to connect from Windows machine using sqlplus I experience the following problems: ORA-12545.
What amaze me is that one minute I can connect the next I get the error ORA-12545.
If I keep on trying to connect I can finally connect next minute I can't connect.
What causes this problem?
Please Help!!!!!!!!

Thanks for the reply...
I have checked the listener.log...
I found this :
TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
But I can connect if I try several times without changing anything...
Please Help!!!!!!!!

Similar Messages

  • Oracle 8i Lite Sqlplus connections

    Hi
    I am trying to run 2 concurrent sqlplus connections in Oracle 8i lite ... it works fine ... if I dont make any changes to database. But Once I commit the changes .... I am not able to make any more connections ....it gives OCA-30017 "Error Loggin on to non-oracle database" and fails connecting to oracle 8i lite. I am using the standard ODBC driver (Oracle Lite) to connect to sqlplus. Please help !!!
    Thanks
    Prabhu.

    I am using Windows 2000 Professional and I am experiencing the same problem. I can connect to the POLITE database from Oracle8 Navigator and Oracle ODBC 32bit Test but not from SQL*Plus. Here is what I see:
    Connected to:
    Oracle Open Client Adapter for ODBC 6.0.5.29.0
    Oracle Lite ORDBMS 4.0.1.0.7
    SQL> connect system/mgr@odbc:POLite
    Server not available or version too low for this feature
    Connected.
    SQL> connect system/mgr
    ERROR:
    ORA-12203: TNS:unable to connect to destination
    Warning: You are no longer connected to ORACLE.
    Should I try to upgrade my Open Client Adapater (OCA)? Could it be something with my PATH? How can I set up the default TNS to connect to POLITE? Any suggestions?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Floyd Teter ([email protected]):
    George,
    Try the following host string: ODBC:POLITE
    Lite typically uses the SID of POLite for installation of the default database, so this host string should do the trick. If not, drop me an email and we'll work through it together.
    Hope this helps!
    FMT
    <HR></BLOCKQUOTE>
    null

  • Sqlplus connection command

    I have a database installed on my machine.I created an entry in tnsnames.ora. entry name is "test"
    I'm able to connect to it using sql developer.
    I'm able to connect to my database using sql plus locally:
    sqlplus user/pass@testhowever, I'm not able to connect using locally:
    sqlplus user/pass@//IP:port/sidgot error:
    ORA-12154: TNS:could not resolve the connect identifier specified
    from another machine,I'm able to connect to database using 2nd sqlplus connection command.
    Why was that? why the same command does not work on my local mahicne?
    also, I tried to connect to others database on others machine, the sqlplus command is not working either although connection works in sql developer.
    seems something wrong with my sql plus.

    my bad, the connection information in the command was wrong
    please ignore this.

  • Sqlplus connect in 8i

    hi everybody ...
    i am using windows platform and oracle 8i database.
    when ever i try to start sqlplus i get ORA -01033 error which means that now i will have to login as "SYSDBA" and shut down database properly...
    my problem is not this error ...its actually connecting with sqlplus from cmd.
    i have tried a lot of methods and still i am unable to login through sqlplus ...
    tried almost every command...
    how ever when i try to login as
    -> sqlplus /nolog
    i am connected but i cant shut down db because of insufficent priviliges ...
    except this what ever i write which includes sysdba,sysoper
    it does not connect and gives suggestion for sysntax ...
    any guidance will be highly appreciated ...
    regards !

    did you try
    sqlplus /nolog
    sqlplus> connect sys as sysdba
    sqlpllus> shutdown immediate
    ?

  • Sqlplus connection error

    Hi there,
    I am new to oracle and I just installed Oracle Database 10g express edition and also sqlplus, I am now having the following error login into the oracle database by sqlplus
    "Error while trying to retrieve text for error ORA-12154" can you help please, thanks

    Please post the exact syntax you used to connect, and the complete error stack you get.
    Also, what's your OS ?

  • Finding the Unix PID of a sqlplus connection by the user

    Hi,
    I want to find at the OS level the process id when a user connects from his machine via sqlplus, is there a way I can do it? - I read that it can be got by combining v$session with v$process, but I still don't know the exact query.
    Thanks
    NIrav

    The query is not returning any rows, because in the v$process table there is only one user named oracle (though I connected with user named NIS2)
    QL&gt; select count(*) from v$session where username='NIS2';
    COUNT(*)
    2
    SQL&gt; select distinct username from v$process;
    USERNAME
    oracle
    Can u pl. suggest..
    Thanks
    Nirav

  • SQLPLUS connects with sysdba but prompts for all others.

    Greetings,
    If I launch sqlplus as sysdba {i.e.  sqlplus / as sysdba } It connects immediately.
    If I attempt to launch using another user (i.e. sqlplus scott/tiger } I get an error message (ORA-01017 invalid username password)
    After that it prompts me for a username and then a password and then it launches sqlplus. Now I'm connected.
    How do I change this so that I connect with all other users as "sqlplus username/password" ?
    Thanks in advance,
    Brian

    Connecting with / as sysdba works only directly on the server.
    If you connect as another user you usually need to add the database instance name or the service name from your tnsnames.ora file to the connect string.
    sqlplus username/password@databaseYou can set the database instance on your machine (server or sometimes pc) so that it is added automagically. but this depends on your OS and other environment settings. You might want to check out the administration guide or the general forum for more detailed answers.

  • Sqlplus connection problem

    when i connect sqlplus username/password following error occurs
    SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    [oracle@ora9i bdump]$ sqlplus mkt/cslkcl
    SQL*Plus: Release 9.2.0.4.0 - Production on Thu Dec 14 09:53:09 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @
    ERROR at line 1:
    ORA-00969: missing ON keyword
    SP2-0042: unknown command "1.1" - rest of line ignored.
    SP2-0734: unknown command beginning "date     2006...." - rest of line ignored.
    SP2-0042: unknown command "branches" - rest of line ignored.
    SP2-0042: unknown command "next     " - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    Usage: DESCRIBE [schema.]object[@db_link]
    SP2-0042: unknown command "head     1.1" - rest of line ignored.
    SP2-0042: unknown command "access" - rest of line ignored.
    SP2-0042: unknown command "symbols" - rest of line ignored.
    SP2-0734: unknown command beginning "locks; str..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    comment     @# @

    When SQL*Plus starts up, it will look for a global login script called glogin.sql in the $ORACLE_HOME/sqlplus/admin directory. If found, this script will be executed.
    Or you may have login.sql in the directory.
    There are some syntax errors in the scripts. Find either of this scripts and correct the error.

  • Sqlplus connects locally but not with tns after changing "log on as"

    I can connect to the DB from locally with "sqlplus system/password" however I can't with "sqlplus system/password@mysid".
    the only thing we changed was in the service. We changed the service -> properties -> Log On values from "Local System Acount" to "This account" with a valid login and password.
    RMAN now works to a NAS drive but getting to the DB is not working. When we had "local System Account" selected, we could get to the DB but RMAN could not reach the NAS drive.
    Can anyone help? Oracle 11gR2 on Windows server 2008.
    Thanks

    Thank you for the help. I fixed it my not only changing all the services to that same user, but I added the user to the administrators and ora_dba groups. Now we can use the NAS drive and get to it from TNS.

  • Can't access Home page on XP, with sqlplus connection is OK

    Version: Oracle 10g Expression Edition
    OS:XP
    DB connect with sqlplus : OK
    Home page access failed:
    I tried
    http://127.0.0.1:8080/apex
    http://localhsot:8080/apex
    http://<myIp>:8080/apex
    I can use it before, but one day it doesn't work.
    There is a Mcafee installed on my OS, I don't know if there is any relationship.
    Pls help

    Run a lsnrctl status there should be an endpoint for http, if not either the database is down or the parameters needed for the XEXDB service aren't correct:
    $ lsnrctl status
    Listener Endpoints ...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))

  • Sqlplus Connection in Other Network Segment

    After configuring the SQLnet, I am trying to use sqlplus to
    connect Oracle 8i database located in another network segment
    connected via a router, the error message displayed :
    ORA-12545: TNS:name lookup failure
    But when I do a tnsping, it responded with an OK.

    Hi,
    how do specify hostname in tnsnames.ora (hostname.domainname,hostname,ip-address)? Are you using DNS? If it is a DNS resolution problem, you could include a line like
    126.34.10.244 hostname.domainname.com hostname
    in your local hosts file.
    It could be necessary to turn on tracing (level 16) to get more detailed informations.
    Werner

  • Sqlplus connection is slow

    We have three databases sharing oracle 9i home. It takes nearly 2mins to 5mins to connect to the databases. Platform is AIX
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    $ uname -a
    AIX elroy 3 5 000177494C00
    The truss output shows delay on reading a particular file called "/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx207d01.nlb" . Any idea how to fix this?
    $ truss -d sqlplus "/ as sysdba"
    0.0307: execve("/u01/app/oracle/product/920_64/bin/sqlplus", 0x2FF22730, 0x2FF2273C) argc: 2
    0.2511: thread_init(0x090000000041C348, 0x09001000A013B028) =
    0.2873: sbrk(0x0000000000000000) = 0x000000001009CC08
    0.8587: getdirent64(7, 0x000000011016E330, 4096) = 4072
    0.8598: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.8608: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.8620: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.8631: close(7) = 0
    0.8642: statx("/", 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.8653: statx("./", 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.8665: statx("./../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.8677: open("./../", O_RDONLY) = 7
    0.8687: getdirent64(7, 0x000000011016E330, 4096) = 80
    0.8773: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.8783: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.8795: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.8806: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.8817: getdirent64(7, 0x000000011016E330, 4096) = 80
    0.8828: close(7) = 0
    0.8837: statx("./../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.8849: open("./../../", O_RDONLY) = 7
    0.8859: getdirent64(7, 0x000000011016E330, 4096) = 176
    0.8928: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.8939: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.8953: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.8966: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.8977: getdirent64(7, 0x000000011016E330, 4096) = 176
    0.8988: close(7) = 0
    0.8999: statx("./../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9011: open("./../../../", O_RDONLY) = 7
    0.9026: getdirent64(7, 0x000000011016E330, 4096) = 72
    0.9086: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9097: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9109: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9121: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9131: getdirent64(7, 0x000000011016E330, 4096) = 72
    0.9142: close(7) = 0
    0.9152: statx("./../../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9164: open("./../../../../", O_RDONLY) = 7
    0.9174: getdirent64(7, 0x000000011016E330, 4096) = 2112
    0.9185: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9195: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9207: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9219: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9230: getdirent64(7, 0x000000011016E330, 4096) = 2112
    0.9241: close(7) = 0
    0.9251: statx("./../../../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9263: open("./../../../../../", O_RDONLY) = 7
    0.9273: getdirent64(7, 0x000000011016E330, 4096) = 208
    0.9283: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9294: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9306: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9318: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9329: getdirent64(7, 0x000000011016E330, 4096) = 208
    0.9339: close(7) = 0
    0.9349: statx("./../../../../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9363: open("./../../../../../../", O_RDONLY) = 7
    0.9374: getdirent64(7, 0x000000011016E330, 4096) = 360
    0.9385: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9395: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9407: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9419: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9430: getdirent64(7, 0x000000011016E330, 4096) = 360
    0.9440: close(7) = 0
    0.9454: statx("./../../../../../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9466: open("./../../../../../../../", O_RDONLY) = 7
    0.9476: getdirent64(7, 0x000000011016E330, 4096) = 144
    0.9487: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9497: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9508: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9520: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9531: getdirent64(7, 0x000000011016E330, 4096) = 144
    0.9542: close(7) = 0
    0.9551: statx("./../../../../../../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9563: open("./../../../../../../../../", O_RDONLY) = 7
    0.9577: getdirent64(7, 0x000000011016E330, 4096) = 136
    0.9587: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9597: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9609: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9621: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9632: getdirent64(7, 0x000000011016E330, 4096) = 136
    0.9643: close(7) = 0
    0.9653: statx("./../../../../../../../../../", 0x0FFFFFFFFFFF5F80, 176, 0) = 0
    0.9666: open("./../../../../../../../../../", O_RDONLY) = 7
    0.9676: getdirent64(7, 0x000000011016E330, 4096) = 4072
    0.9687: klseek(7, 0, 0, 0x0FFFFFFFFFFF5E80) = 0
    0.9697: kfcntl(7, F_GETFD, 0x00000001100A02D8) = 0
    0.9709: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    0.9721: fstatx(7, 0x0FFFFFFFFFFF61A0, 176, 020) = 0
    0.9733: getdirent64(7, 0x000000011016E330, 4096) = 4072
    0.9744: statx("./../../../../../../../../../.", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9758: statx("./../../../../../../../../../..", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9770: statx("./../../../../../../../../../opt.6720", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9782: statx("./../../../../../../../../../var", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9794: statx("./../../../../../../../../../tmp", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9806: statx("./../../../../../../../../../home", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9818: statx("./../../../../../../../../../smit.log", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9830: statx("./../../../../../../../../../usr", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9842: statx("./../../../../../../../../../dev", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9854: statx("./../../../../../../../../../smit.transaction", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9866: statx("./../../../../../../../../../etc", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9881: statx("./../../../../../../../../../lib", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9894: statx("./../../../../../../../../../lpp", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9906: statx("./../../../../../../../../../u", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9921: statx("./../../../../../../../../../opt", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9933: statx("./../../../../../../../../../sbin", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9945: statx("./../../../../../../../../../mnt", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9957: statx("./../../../../../../../../../cdrom", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9969: statx("./../../../../../../../../../audit", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9983: statx("./../../../../../../../../../tftpboot", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    0.9995: statx("./../../../../../../../../../smit.script", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0007: statx("./../../../../../../../../../.sh_history", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0021: statx("./../../../../../../../../../inst.log", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0032: statx("./../../../../../../../../../lost+found", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0044: statx("./../../../../../../../../../proc", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0056: statx("./../../../../../../../../../.rhosts", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0069: statx("./../../../../../../../../../.rootvg.date", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0081: statx("./../../../../../../../../../.pagingvg.date", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0093: statx("./../../../../../../../../../.profile", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0105: statx("./../../../../../../../../../cws", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0117: statx("./../../../../../../../../../scripts", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0129: statx("./../../../../../../../../../u09", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0142: statx("./../../../../../../../../../u01", 0x0FFFFFFFFFFF6250, 176, 021) = 0
    1.0156: close(7) = 0
    1.0182: access("/u01/app/oracle/product/920_64/network/admin/sqlnet.ora", 0) = 0
    1.0200: open("/u01/app/oracle/product/920_64/network/admin/sqlnet.ora", O_RDONLY) = 7
    1.0211: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    1.0221: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    1.0236: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    kread(7, " N A M E S . D E F A U L".., 4096) = 210
    kread(7, " N A M E S . D E F A U L".., 4096) = 0
    1.0276: close(7) = 0
    1.0287: access("/u01/app/oracle/home/.sqlnet.ora", 0) Err#2 ENOENT
    1.0302: _getpid()                        = 22991098
    1.0313: access("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/cli_0.trc", 0) Err#2 ENOENT
    1.0330: access("/u01/app/oracle/product/920_64/network/admin/sqlnet.ora", 0) = 0
    1.0343: open("/u01/app/oracle/product/920_64/network/admin/sqlnet.ora", O_RDONLY) = 7
    1.0353: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    1.0363: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    1.0377: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    kread(7, " N A M E S . D E F A U L".., 4096) = 210
    kread(7, " N A M E S . D E F A U L".., 4096) = 0
    1.0409: close(7) = 0
    1.0432: access("/u01/app/oracle/product/920_64/network/admin/intchg.ora", 0) Err#2 ENOENT
    1.0445: access("/etc/intchg.ora", 0) Err#2 ENOENT
    1.0459: access("/u01/app/oracle/product/920_64/network/admin/intchg.ora", 0) Err#2 ENOENT
    1.0472: access("/u01/app/oracle/product/920_64/network/admin/tnsnav.ora", 0) Err#2 ENOENT
    1.0486: access("/etc/tnsnav.ora", 0) Err#2 ENOENT
    1.0498: access("/u01/app/oracle/product/920_64/network/admin/tnsnav.ora", 0) Err#2 ENOENT
    1.0513: _getpid()                        = 22991098
    1.0524: getargs(0x0FFFFFFFFFFF7060, 1536, "", 256) = 0
    1.0535: uname(0x000000011007A880) = 0
    1.0549: getuidx(2) = 800
    1.0563: __libc_sbrk(0x0000000000010020) = 0x000000001018CD20
    1.0582: open("/usr/lib/security/methods.cfg", O_RDONLY) = 7
    1.0592: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    1.0603: kfcntl(7, F_GETFD, 0x0000000000000000) = 0
    1.0614: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    1.0627: statx("/usr/lib/security/methods.cfg", 0x0FFFFFFFFFFF61C0, 176, 0) = 0
    1.0642: lseek(7, 0, 1) = 0
    1.0653: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    kread(7, " * @ ( # ) 7 8\t 1 . 3".., 4096) = 1821
    1.0674: lseek(7, 0, 1) = 1821
    1.0918: lseek(7, 0, 1) = 1821
    1.0928: lseek(7, 0, 1) = 1821
    1.0939: lseek(7, 0, 1) = 1821
    1.0949: lseek(7, 0, 1) = 1821
    1.0959: lseek(7, 0, 1) = 1821
    1.0969: lseek(7, 0, 1) = 1821
    1.0980: lseek(7, 0, 1) = 1821
    1.0990: lseek(7, 0, 1) = 1821
    1.1001: lseek(7, 0, 1) = 1821
    1.1011: lseek(7, 0, 1) = 1821
    1.1021: lseek(7, 0, 1) = 1821
    1.1031: lseek(7, 0, 1) = 1821
    1.1042: lseek(7, 0, 1) = 1821
    1.1052: lseek(7, 0, 1) = 1821
    1.1062: lseek(7, 0, 1) = 1821
    1.1072: lseek(7, 0, 1) = 1821
    1.1082: lseek(7, 0, 1) = 1821
    1.1093: lseek(7, 0, 1) = 1821
    1.1104: lseek(7, 0, 1) = 1821
    1.1115: lseek(7, 0, 1) = 1821
    1.1126: lseek(7, 0, 1) = 1821
    1.1136: lseek(7, 0, 1) = 1821
    1.1147: lseek(7, 0, 1) = 1821
    kread(7, " * @ ( # ) 7 8\t 1 . 3".., 4096) = 0
    1.1168: close(7) = 0
    1.1181: open("/etc/passwd", O_RDONLY) = 7
    1.1192: kioctl(7, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    1.1202: kfcntl(7, F_GETFD, 0x0000000000000000) = 0
    1.1214: kfcntl(7, F_SETFD, 0x0000000000000001) = 0
    1.1227: accessx("/etc/security/passwd", 04, 0) Err#13 EACCES
    1.1247: accessx("/etc/passwd", 04, 0) = 0
    1.1261: statx("/etc/passwd", 0x0FFFFFFFFFFF5C50, 176, 0) = 0
    1.1276: open("/etc/passwd.id.idx", O_RDONLY) Err#2 ENOENT
    1.1285: _getpid()                        = 22991098
    1.1296: _getpid()                        = 22991098
    1.1308: open("/etc/passwd", O_RDONLY) = 8
    1.1318: kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    1.1331: kfcntl(8, F_GETFD, 0x0000000000000000) = 0
    1.1342: kfcntl(8, F_SETFD, 0x0000000000000001) = 0
    1.1354: kfcntl(8, 13, 0x0FFFFFFFFFFF5F70) = 0
    1.1367: lseek(8, 0, 1) = 0
    1.1380: kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    kread(8, " r o o t : ! : 0 : 0 : :".., 4096) = 4096
    1.1401: lseek(8, 0, 1) = 4096
    1.1411: lseek(8, 0, 1) = 4096
    1.1422: lseek(8, 0, 1) = 4096
    1.1436: lseek(8, 0, 1) = 4096
    1.1451: lseek(8, 0, 1) = 4096
    1.1464: lseek(8, 0, 1) = 4096
    1.1476: lseek(8, 0, 1) = 4096
    1.1486: lseek(8, 0, 1) = 4096
    1.1497: lseek(8, 0, 1) = 4096
    1.1507: lseek(8, 0, 1) = 4096
    1.1602: lseek(8, 0, 1) = 4096
    1.1612: lseek(8, 0, 1) = 4096
    1.1623: lseek(8, 0, 1) = 4096
    1.1634: lseek(8, 0, 1) = 4096
    1.1771: lseek(8, 0, 1) = 4096
    1.1782: lseek(8, 0, 1) = 4096
    1.1792: lseek(8, 0, 1) = 4096
    1.1803: kfcntl(8, 13, 0x0FFFFFFFFFFF60F0) = 0
    1.1815: klseek(8, -2250, 1, 0x0FFFFFFFFFFF5E00) = 0
    1.1826: close(8) = 0
    1.1837: _getpid()                        = 22991098
    1.1848: _getpid()                        = 22991098
    1.1859: open("/etc/passwd", O_RDONLY) = 8
    1.1869: kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    1.1879: kfcntl(8, F_GETFD, 0x0000000000000000) = 0
    1.1891: kfcntl(8, F_SETFD, 0x0000000000000001) = 0
    1.1903: kfcntl(8, 13, 0x0FFFFFFFFFFF60A0) = 0
    1.1915: lseek(8, 0, 1) = 0
    1.1925: lseek(8, 1766, 0) = 1766
    1.1936: kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
    kread(8, "\n o r a c l e : ! : 8 0".., 4096) = 4096
    1.1956: lseek(8, 0, 1) = 5862
    1.1967: lseek(8, 0, 1) = 5862
    1.1979: lseek(8, 0, 1) = 5862
    1.1989: lseek(8, 0, 0) = 0
    1.2000: kfcntl(8, 13, 0x0FFFFFFFFFFF6220) = 0
    1.2012: close(8) = 0
    1.2029: accessx("/etc/passwd", 04, 0) = 0
    1.2042: statx("/etc/passwd", 0x0FFFFFFFFFFF54A0, 176, 0) = 0
    1.2055: accessx("/etc/passwd", 04, 0) = 0
    1.2075: statx("/etc/passwd", 0x0FFFFFFFFFFF5560, 176, 0) = 0
    1.2090: accessx("/etc/passwd", 04, 0) = 0
    1.2102: statx("/etc/passwd", 0x0FFFFFFFFFFF5460, 176, 0) = 0
    1.2115: accessx("/etc/security/passwd", 04, 0) Err#13 EACCES
    1.2127: accessx("/etc/passwd", 04, 0) = 0
    1.2139: statx("/etc/passwd", 0x0FFFFFFFFFFF5190, 176, 0) = 0
    1.2151: accessx("/etc/passwd", 04, 0) = 0
    1.2163: statx("/etc/passwd", 0x0FFFFFFFFFFF5250, 176, 0) = 0
    1.2176: accessx("/etc/security/passwd", 04, 0) Err#13 EACCES
    1.2194: sys_parm(0, 18, 0x0FFFFFFFFFFF5D08) = 0
    1.2207: getuidx(2) = 800
    1.2217: getuidx(4) = 800
    1.2225: getgidx(2) = 201
    1.2233: getgidx(4) = 201
    1.2245: getuidx(1) = 800
    1.2254: getpriv(8, 0x0FFFFFFFFFFF5E10, 8) = 0
    1.2267: accessx("/etc/passwd", 04, 0) = 0
    1.2282: close(7) = 0
    1.2304: __libc_sbrk(0x0000000000020020) = 0x000000001019CD40
    1.2357: sigprocmask(0, 0x0FFFFFFFFFFF52B8, 0x0000000000000000) = 0
    1.2368: sigprocmask(2, 0x09001000A013F7C8, 0x0FFFFFFFFFFF5020) = 0
    1.2378: _sigaction(20, 0x0FFFFFFFFFFF5150, 0x0FFFFFFFFFFF5180) = 0
    1.2388: thread_setmystate(0x0FFFFFFFFFFF4C10, 0x0000000000000000) = 0
    1.2402: sigprocmask(1, 0x0FFFFFFFFFFF5298, 0x0000000000000000) = 0
    1.2411: pipe(0x0FFFFFFFFFFF53D8) = 0
    1.2428: pipe(0x0FFFFFFFFFFF53D0) = 0
    1.2441: sigprocmask(0, 0x09001000A013F7C8, 0x09001000A013F7A8) = 0
    1.2450: kfork() = 20037704
    1.2512: thread_setmystate(0x0FFFFFFFFFFF4DA0, 0x0000000000000000) = 0
    1.2530: sigprocmask(0, 0x0FFFFFFFFFFF52B8, 0x0000000000000000) = 0
    1.2539: sigprocmask(2, 0x09001000A013F7C8, 0x0FFFFFFFFFFF5020) = 0
    1.2552: _sigaction(13, 0x0FFFFFFFFFFF5150, 0x0FFFFFFFFFFF5180) = 0
    1.2562: thread_setmystate(0x0FFFFFFFFFFF4C10, 0x0000000000000000) = 0
    1.2582: sigprocmask(1, 0x0FFFFFFFFFFF5298, 0x0000000000000000) = 0
    1.2596: close(7) = 0
    1.2606: close(10) = 0
    kread(9, " N T P 0 2 0 0 3 7 7 0".., 64) = 14
    1.3819: _getpid()                        = 22991098
    1.3833: kfcntl(9, F_SETFD, 0x0000000000000001) = 0
    1.3868: access("/u01/app/oracle/product/920_64/lib/libnk59.so", 0) = 0
    1.3887: access("/u01/app/oracle/product/920_64/lib/libngss9.so", 0) Err#2 ENOENT
    1.3906: access("/u01/app/oracle/product/920_64/lib/libnnts9.so", 0) Err#2 ENOENT
    1.3920: access("/u01/app/oracle/product/920_64/lib/libnrad9.so", 0) = 0
    1.3947: _getpid()                        = 22991098
    kwrite(8, "\0 :\0\001\0\0\001 801 ,".., 58) = 58
    kwrite(8, "\0 þ\0\006\0\0\0\0\0 ( D".., 254) = 254
    kread(9, "\0 \0\002\0\0\001 8\f01".., 2064) = 32
    1.4021: _getpid()                        = 22991098
    kwrite(8, "\0 ¨\0\006\0\0\0\0\0 Þ ".., 168) = 168
    kread(9, "\08B\0\006\0\0\0\0\0 Þ ".., 2064) = 139
    kwrite(8, "\0 .\0\006\0\0\0\0\00106".., 46) = 46
    3.4103: kread(9, "\0 \0\002\0\0\001 8\f01".., 2064) (sleeping...)
    kread(9, "\0 \0\006\0\0\0\0\00106".., 2064)    = 173
    *340.6551: open("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx207d01.nlb", O_RDONLY) = 7*
    kread(7, " Z Z\0\00210\0\0\012\0\0".., 100) = 100
    340.6830: close(7) = 0
    340.6842: __libc_sbrk(0x0000000000020020) = 0x00000000101BCD60
    340.6855: open("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx207d01.nlb", O_RDONLY) = 7
    kread(7, " Z Z\0\00210\0\0\012\0\0".., 100) = 100
    kread(7, "07 Ð\0\0 ! `\0\0\0\0\0\0".., 106620) = 106620
    340.7015: close(7) = 0
    340.7029: open("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx607d01.nlb", O_RDONLY) = 7
    kread(7, " Z Z\0\0\0\0\0\0\016\0\0".., 100) = 100
    340.7183: close(7) = 0
    340.7196: __libc_sbrk(0x0000000000020020) = 0x00000000101DCD80
    340.7210: open("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx607d01.nlb", O_RDONLY) = 7
    kread(7, " Z Z\0\0\0\0\0\0\016\0\0".., 100) = 100
    kread(7, "07 Ð\0\0\004\014\014\014".., 124046) = 124046
    340.7392: close(7) = 0
    340.7406: open("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx507d01.nlb", O_RDONLY) = 7
    kread(7, " Z Z\0\0\0\0\0\0\005\0\0".., 100) = 100
    340.7483: close(7) = 0
    340.7498: open("/u01/app/oracle/product/920_64/ocommon/nls/admin/data/lx507d01.nlb", O_RDONLY) = 7
    kread(7, " Z Z\0\0\0\0\0\0\005\0\0".., 100) = 100
    kread(7, "07 Ð\0\0\004 ª04 ª04 ª04".., 43550) = 43550
    340.7565: close(7) = 0
    kwrite(8, "\0 4\0\006\0\0\0\0\00201".., 52) = 52
    kread(9, "\016\0\006\0\0\0\0\00280".., 2064) = 22
    kwrite(8, "\0 -\0\006\0\0\0\0\003 ;".., 45) = 45
    kread(9, "\0 ¹\0\006\0\0\0\0\0\b\0".., 2064) = 185
    340.7916: sigprocmask(2, 0x09001000A013F7C8, 0x0FFFFFFFFFFF8BD0) = 0
    340.7948: _sigaction(18, 0x0FFFFFFFFFFF8D00, 0x0FFFFFFFFFFF8D30) = 0
    340.7972: thread_setmystate(0x0FFFFFFFFFFF87C0, 0x0000000000000000) = 0
    340.7989: kioctl(0, 22529, 0x0FFFFFFFFFFF8918, 0x0000000000000000) = 0
    340.8104: statx("/dev/pts/0", 0x0FFFFFFFFFFF8A38, 176, 0) = 0

    deebee_eh wrote:
    is it only sqlplus user/pass@db from client?
    what happens when you try as sysdba from server itself?
    did you try a sqlnet trace?As you can see, in the output i have given. It is happening while connecting from the server as sysdba
    any online trigger stuff going on?I crosschecked triggers as well as for default login.sql file. Neither of them is the cause.
    Wondering why the read and open of *$ORACLE_HOME/ocommon/nls/admin/data/lx207d01.nlb* file takes more time. Referred IBMs site itself for understanding this behaviour in AIX, but couldn't find the exact cause or solution.

  • I am an oracle newbie, I should sqlplus connection to oracle

    I want to do: Open the oracle, create a Test database.
    System: redhat 6.2 / / Oracle version: 11g r2
    Here is my oracle log file, please help me, thank.
    =============================================
    Sun Oct 14 00:18:53 2012
    Create Relation ADR_CONTROL
    Create Relation ADR_INVALIDATION
    Create Relation INC_METER_IMPT_DEF
    Create Relation INC_METER_PK_IMPTS
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Trace information written to /u01/app/oracle/diag/tnslsnr/localhost/listener/trace/ora_2185_3078911680.trc
    Trace level is currently 0
    Started with pid=2185
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    WARNING: Subscription for node down event still pending
    14-OCT-2012 00:18:53 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Sun Oct 14 00:21:59 2012
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Listener completed notification to CRS on stop
    14-OCT-2012 00:21:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * stop * 0
    Thu Nov 01 23:04:51 2012
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Trace information written to /u01/app/oracle/diag/tnslsnr/localhost/listener/trace/ora_3372_3079083712.trc
    Trace level is currently 0
    Started with pid=3372
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    WARNING: Subscription for node down event still pending
    01-NOV-2012 23:04:55 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Thu Nov 01 23:05:08 2012
    WARNING: Subscription for node down event still pending
    01-NOV-2012 23:05:08 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Thu Nov 01 23:08:14 2012
    WARNING: Subscription for node down event still pending
    01-NOV-2012 23:08:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Thu Nov 01 23:10:51 2012
    Trace information written to /u01/app/oracle/diag/tnslsnr/localhost/listener/trace/ora_3372_3079083712.trc
    Trace level is currently 0
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    01-NOV-2012 23:10:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=reload)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * reload * 0
    Thu Nov 01 23:11:27 2012
    01-NOV-2012 23:11:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * services * 0
    Thu Nov 01 23:33:14 2012
    WARNING: Subscription for node down event still pending
    01-NOV-2012 23:33:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Thu Nov 01 23:45:33 2012
    01-NOV-2012 23:45:33 * (CONNECT_DATA=(SERVICE_NAME=)(CID=(PROGRAM=sqlplus)(HOST=localhost.localdomain)(USER=oracle))) * establish * 12504
    TNS-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    TNS-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    Thu Nov 01 23:52:12 2012
    01-NOV-2012 23:52:12 * (CONNECT_DATA=(SERVICE_NAME=oracle)(CID=(PROGRAM=java)(HOST=localhost.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=14409)) * establish * oracle * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    Thu Nov 01 23:55:32 2012
    WARNING: Subscription for node down event still pending
    01-NOV-2012 23:55:32 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Thu Nov 01 23:56:01 2012
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Listener completed notification to CRS on stop
    01-NOV-2012 23:56:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * stop * 0
    Tue Nov 06 22:24:37 2012
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Trace information written to /u01/app/oracle/diag/tnslsnr/localhost/listener/trace/ora_2674_3077985984.trc
    Trace level is currently 0
    Started with pid=2674
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    WARNING: Subscription for node down event still pending
    06-NOV-2012 22:24:42 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Tue Nov 06 22:26:40 2012
    WARNING: Subscription for node down event still pending
    06-NOV-2012 22:26:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Tue Nov 06 22:49:34 2012
    WARNING: Subscription for node down event still pending
    06-NOV-2012 22:49:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Tue Nov 06 23:02:20 2012
    WARNING: Subscription for node down event still pending
    06-NOV-2012 23:02:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Tue Nov 06 23:07:20 2012
    06-NOV-2012 23:07:20 * (CONNECT_DATA=(SERVICE_NAME=)(CID=(PROGRAM=sqlplus)(HOST=localhost.localdomain)(USER=oracle))) * establish * 12504
    TNS-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    TNS-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    Tue Nov 06 23:08:44 2012
    06-NOV-2012 23:08:44 * (CONNECT_DATA=(SERVICE_NAME=)(CID=(PROGRAM=sqlplus)(HOST=localhost.localdomain)(USER=oracle))) * establish * 12504
    TNS-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    TNS-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    Tue Nov 06 23:09:23 2012
    06-NOV-2012 23:09:23 * (CONNECT_DATA=(SERVICE_NAME=oracle)(CID=(PROGRAM=sqlplus)(HOST=localhost.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=22109)) * establish * oracle * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    Tue Nov 06 23:10:20 2012
    WARNING: Subscription for node down event still pending
    06-NOV-2012 23:10:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    Tue Nov 06 23:47:51 2012
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Listener completed notification to CRS on stop
    06-NOV-2012 23:47:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * stop * 0

    // id
    uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
    // env | sort
    CLASSPATH=.:/usr/java/jdk1.7.0_07/lib/dt.jar:/usr/java/jdk1.7.0_07/lib/tools.jar
    COLORTERM=gnome-terminal
    CVS_RSH=ssh
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-iLGRF7K4YE,guid=2fd6a1fbe541bd143dfc8b5e00000053
    DESKTOP_SESSION=gnome
    DISPLAY=:0.0
    G_BROKEN_FILENAMES=1
    GDM_KEYBOARD_LAYOUT=us
    GDM_LANG=en_US.UTF-8
    GDMSESSION=gnome
    GNOME_DESKTOP_SESSION_ID=this-is-deprecated
    GNOME_KEYRING_PID=2467
    GNOME_KEYRING_SOCKET=/tmp/keyring-PckI8t/socket
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
    HISTCONTROL=ignoredups
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=localhost.localdomain
    JAVA_HOME=/usr/java/jdk1.7.0_07
    LANG=en_US.UTF-8
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    MAIL=/var/spool/mail/oracle
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    ORACLE_SID=ora
    ORBIT_SOCKETDIR=/tmp/orbit-oracle
    PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/u01/app/oracle/product/11.2.0/db_1/bin:/usr/java/jdk1.7.0_07/binL:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle/Desktop
    QTDIR=/usr/lib/qt-3.3
    QTINC=/usr/lib/qt-3.3/include
    QTLIB=/usr/lib/qt-3.3/lib
    SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2476,unix/unix:/tmp/.ICE-unix/2476
    SHELL=/bin/bash
    SHLVL=2
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_AUTH_SOCK=/tmp/keyring-PckI8t/socket.ssh
    TERM=xterm
    USERNAME=oracle
    USER=oracle
    _=/usr/bin/env
    WINDOWID=44043786
    WINDOWPATH=1
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 8 23:39:48 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> connect ora
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Warning: You are no longer connected to ORACLE.
    SQL> connect oracle
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    SQL> SHOW DATABASES;
    SP2-0158: unknown SHOW option "DATABASES"
    SQL> SHOW TABLES;
    SP2-0158: unknown SHOW option "TABLES"
    SQL> SELECT * FROM USER;
    SP2-0640: Not connected
    SQL> exit
    Edited by: ruid on Nov 8, 2012 7:56 AM

  • JDBC Connection Success SQLPLUS Connection Failure.

    Hi ,
    I want to access a remote Database,
    Through Java program I can access the remote Database but when I tried through SQL plus its failed saying
    ERROR:ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    If anyknow one know the solution please update.
    Note :
    1. I have added the database entry in tnsname.ora
    2. TNS ping also giving response as OK.
    3. Remote machine OS Windows7
    4. Database/SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 17 17:32:34 2011
    Thanks in Advance.
    Karai

    karais wrote:
    Hi ,
    I want to access a remote Database,
    Through Java program I can access the remote Database but when I tried through SQL plus its failed saying
    ERROR:ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    see http://edstevensdba.wordpress.com/2011/03/19/ora-12514/
    If anyknow one know the solution please update.
    Note :
    1. I have added the database entry in tnsname.ora
    2. TNS ping also giving response as OK.
    3. Remote machine OS Windows7
    4. Database/SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 17 17:32:34 2011
    Thanks in Advance.
    Karai

  • Oracle type error using cygwin on windows to connect via sqlplus to oracle.

    Hi,
    Found already some information on the internet regarding this topic but wasn't able to solve it so far.
    So all informartion, tips are more then welcome.
    Scripts runs with admin account 'DBA_Services'
    Sqlplus connection sqlplus sys/***@oracle_sid
    Thx already
    OWBrun Script (v2.0)
    Enviroment : GAMMA
    Hostname : pvspdb04
    Database : sgviv5
    Date : 05Nov2010
    Time : 15:58:21
    Schema : dwhins
    RuntimeRep: OWBRUN
    Mapping : INS_DLITE_CTRL_JOB_03
    Location : DNA_STAGING_LOCATION
    Type load : PLSQL
    Custom par: ,
    Identifier: INS_DLITE_CTRL_JOB_03_20101105155820
    Logfile : /ING/DWH/ora_dwh_loader/log/dwhins/owbrun_dwhins_INS_DLITE_CTRL_JOB_03_20101105155820.log
    === Check DB connect ===
    05-NOV-2010 15:58:22
    DB connection test is OK (attemps=1)
    === OWB RUN ===
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Nov 5 15:58:22 2010
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options
    SQL> SQL> SQL> SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL> SQL> SQL> SQL> SQL>
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> ++ Execute owbruntask dwhins.INS_DLITE_CTRL_JOB_03
    SQL>
    Stage 1: Decoding Parameters
    | location_name=DNA_STAGING_LOCATION
    | task_type=PLSQL
    | task_name=INS_DLITE_CTRL_JOB_03
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
    ORA-06512: at line 267
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options Exitcode = 33 Error : OWBRUN INS_DLITE_CTRL_JOB_03
    Date : 05Nov2010
    Time : 15:58:24

    This are the most important scripts:
    DLITE_Sub1_201.ksh
    #!/bin/ksh
    #set -x
    cp /ING/DWH/ora_dwh_loader/conf/stgins.cfg.sgviv5 /ING/DWH/ora_dwh_loader/conf/stgins.cfg
    export FPATH=/ING/IIB/DNA/Interfaces/Scripts
    export FINPATH=/ING/IIB/DNA/In/
    export FOUTPATH=/ING/IIB/DNA/Out/
    #load script into memory
    autoload DLITE_fct_JS
    #load script into memory
    #autoload DNA_fct_JS_EXEC
    JS_SCRIPT=`basename $0`
    JS_ID=201
    JS_TSK_ID=001;JS_TSK_NAM="FP_START_Remove_Files"
    echo "\nstart subtask '${JS_TSK_NAM}"
    cd /ING/IIB/DNA/Out
    rm -f DLITE_CAPSIL_CODE_*.CSV
    rm -f DLITE_CAPSIL_VAL_*.CSV
    rm -f DLITE_VARIA_CODE_*.CSV
    rm -f DLITE_VARIA_VAL_*.CSV
    echo "\nend subtask '${JS_TSK_NAM}"
    JS_TSK_ID=002;JS_TSK_NAM="F_DLITE_01_CODE_DESC"
    cd /ING/IIB/DNA/Interfaces/Scripts
    echo "\nstart subtask '${JS_TSK_NAM}"
    ksh DLITE_owbrun.ksh -s dwhins -t PROCESS -m F_DLITE_01_CODE_DESC -l LOC_DNA_FLOW_STORE -c ","
    JS_TSK_STA=$?
    echo "\nverifying correct execution of subtask '${JS_TSK_NAM}"
    if [ ${JS_TSK_STA} -ne 0 ] ; then
    ksh DLITE_owbrun.ksh -s dwhins -t PLSQL -m INS_DLITE_CTRL_JOB_03 -l DNA_STAGING_LOCATION -c ","
    exit 1
    fi
    echo "\nend subtask '${JS_TSK_NAM}"
    JS_TSK_ID=002;JS_TSK_NAM="Check header/footer of files"
    echo "\nstart subtask '${JS_TSK_NAM}"
    ksh DLITE_CheckHeaderFooter.ksh
    JS_TSK_STA=$?
    if [ ${JS_TSK_STA} -ne 0 ] ; then
    exit 1
    fi
    echo "\nend subtask '${JS_TSK_NAM}"
    DLITE_owbrun.ksh
    . /ING/IIB/DNA/Interfaces/Scripts/DLITE_ods_set_env.ksh
    fout_melding()
         echo "Error : ${1}" | tee -a ${LOGFILE}
         echo " Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
         echo " Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    if [ -s ${LOGFILE:=/tmp/foutmelding} ]
    then
    cat ${LOGFILE} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    else
    echo "Error : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    fi
    rm -f ${STATSFILE}
    waarschuwing()
         echo "Warning : ${1}" | tee -a ${LOGFILE}
         echo " Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
         echo " Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    if [ -s ${LOGFILE:=/tmp1/foutmelding} ]
    then
    echo ${1} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    else
    echo "Warning : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    fi
    USAGE="Usage : owbrun.ksh -s target_schema -t type -m mapping -l location -c custom_param -p system_param [-i ident]"
    umask 022
    ORVERSION=2.0
    set -- `getopt s:t:m:c:p:i:l: $*`
    if [ $? -ne 0 ]
    then
         echo ${USAGE}
         exit 2
    fi
    while [ $# -gt 0 ]
    do
    case ${1} in
         -s)
              SCHEMA=${2}
              shift 2
         -t)
              LOADTYPE=${2}
              shift 2
         -l)
              LOCATION=${2}
              shift 2
         -m)
              MAPPING=${2}
              shift 2
         -i)
              IDENT=${2}
              shift 2
         -c)
              CUSTPARAM=${2}
              shift 2
              shift
              break
    esac
    done
    export LISTFILENAMES=${*}
    if [ "${SCHEMA}" = "" ]
    then
         fout_melding "Target Schema is mandatory"
         echo ${USAGE}
         exit 1
    fi
    if [ "${MAPPING}" = "" ]
    then
         echo "Error : Mapping is mandatory"
         echo ${USAGE}
         exit 1
    fi
    if [ "${LOCATION}" = "" ]
    then
         echo "Error : Location is mandatory"
         echo ${USAGE}
         exit 1
    fi
    MAPPING=$(echo ${MAPPING} | tr [:lower:] [:upper:])
    if [ "${LOADTYPE}" = "" ]
    then
         echo "Error : Type (PLSQL/SQLLDR/PROCESS) is mandatory"
         echo ${USAGE}
         exit 1
    fi
    LOADTYPE=$(echo ${LOADTYPE} | tr [:lower:] [:upper:])
    if [ "${LOADTYPE}" != "PLSQL" -a "${LOADTYPE}" != "SQLLDR" -a "${LOADTYPE}" != "PROCESS" ]
    then
         echo "Error : Illegal type ${LOADTYPE}"
         echo ${USAGE}
         exit 1
    fi
    export SCHEMA=$(echo ${SCHEMA} | tr [:upper:] [:lower:])
    export UPSCHEMA=$(echo ${SCHEMA} | tr [:lower:] [:upper:])
    # Call the Configuration script
    . /ING/DWH/ora_dwh_loader/bin/config.ksh -s ${SCHEMA}
    exitcode=$?
    if [ $exitcode -ne 0 ]
    then
         echo "Error : during config.ksh"
         exit ${exitcode}
    fi
    if [ "${IDENT}" = "" ]
    then
         IDENT=${MAPPING}_$(date +%Y%m%d%H%M%S)
         CUSTPARAM=$(echo ${CUSTPARAM} | awk -f ${BASEPATH}/bin/owbrun.awk "datum=$(date +%Y%m%d%H%M%S)")
    fi
    if [ "${RUNREP}" = "" ]
    then
         fout_melding "Runtime Repository is mandatory (see ${SCHEMA}.cfg)"
         echo ${USAGE}
         exit 1
    fi
    export BPIDFILE=${TMPDRIVE}/owbrun_${SCHEMA}_${IDENT}_$$.pidlist
    export LOGFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.log
    export STATSFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.stats
    echo "OWBrun Script (v${ORVERSION})" > ${LOGFILE}
    echo "Enviroment : ${APPL_ENV}" >> ${LOGFILE}
    echo "Hostname : $(hostname)" >> ${LOGFILE}
    echo "Database : ${ORACLE_SID}" >> ${LOGFILE}
    echo "Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
    echo "Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    echo "Schema     : ${SCHEMA}" >> ${LOGFILE}
    echo "RuntimeRep: ${RUNREP}" >> ${LOGFILE}
    echo "Mapping : ${MAPPING}" >> ${LOGFILE}
    echo "Location : ${LOCATION}" >> ${LOGFILE}
    echo "Type load : ${LOADTYPE}" >> ${LOGFILE}
    echo "Custom par: ${CUSTPARAM}" >> ${LOGFILE}
    echo "Identifier: ${IDENT}" >> ${LOGFILE}
    echo "Logfile     :     ${LOGFILE}" >> ${LOGFILE}
    echo " " >> ${LOGFILE}
    echo "Hostname : $(hostname)" > ${STATSFILE}
    echo "Database : ${ORACLE_SID}" >> ${STATSFILE}
    echo "Schema     : ${SCHEMA}" >> ${STATSFILE}
    echo "Mapping : ${TABLENAME}" >> ${STATSFILE}
    echo "Period : P${PERIOD}" >> ${STATSFILE}
    echo "Type load : ${LOADTYP}" >> ${STATSFILE}
    echo "Identifier: ${IDENT}" >> ${STATSFILE}
    echo "Start     : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
    echo "=== Check DB connect ===" >> ${LOGFILE}
    ${BASEPATH}/bin/chk_db_connect.ksh >> ${LOGFILE}
    exitcode=${?}
    if [ $exitcode -ne 0 ]
    then
         fout_melding "Could NOT connect to database ${ORACLE_SID}"
         exit ${exitcode}
    fi
    echo "=== OWB RUN ===" >> ${LOGFILE}
    sqlplus 'system/*****' <<-EOF >> ${LOGFILE}
    set timing on
    set serveroutput on
    alter session set sort_area_size=2621440;
    alter session set hash_area_size=2621440;
    alter session set skip_unusable_indexes=true;
    alter session enable resumable timeout ${ResumableTimeout} name 'OwbRunTask ${UPSCHEMA}.${MAPPING}';
    set pages 0
    set timing on
    set serveroutput on
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    exec dbms_application_info.set_module('OWBRUNTASK','${UPSCHEMA}.${MAPPING}');
    Prompt ++ Execute owbruntask ${SCHEMA}.${MAPPING}
    declare
    p_repos_owner varchar2(100):= '${RUNREP}';
    p_location_name varchar2(100):='${LOCATION}';
    p_task_type varchar2(100) :='${LOADTYPE}';
    p_task_name varchar2(100) default '${MAPPING}';
    p_system_params varchar2(100) default '","';
    p_custom_params varchar2(200) default '${CUSTPARAM}"';
    p_oem_friendly number default 0;
    l_oem_style boolean := case (p_oem_friendly)
    when 0 then false
    else true
    end ;
    l_audit_execution_id number; -- Audit Execution Id
    l_audit_result number := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE; -- Result Code
    l_audit_result_disp varchar2(64) := 'FAILURE'; -- Result Display Code
    l_task_type_name varchar2(64); -- Task Type Name
    l_task_type varchar2(64); -- Task Type
    l_task_name varchar2(64); -- Task Name
    l_location_name varchar2(64); -- Location Name
    l_return number ;
    fout exception;
    opgepast exception;
    p_parameters varchar2(4000);
    p_parameter_kind number;
    l_anchor_offset number := 1;
    l_start_offset number := 1;
    l_equals_offset number;
    l_comma_offset number;
    l_value_offset number;
    l_esc_offset number;
    l_esc_count number;
    l_esc_char varchar2(4);
    l_parameter_name varchar2(4000);
    l_parameter_value varchar2(4000);
    begin
    p_custom_params:=replace(p_custom_params,'~',' ');
    execute immediate ('alter session set current_schema = ' || p_repos_owner) ;
    -- Initialize Return Code
    l_return := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE;
    -- Import Parameters
    dbms_output.put_line('Stage 1: Decoding Parameters');
    l_task_type_name := p_task_type ;
    if UPPER(l_task_type_name) = 'PLSQL'
    then
    l_task_type := 'PLSQL';
    elsif UPPER(l_task_type_name) = 'SQL_LOADER'
    then
    l_task_type := 'SQLLoader';
    elsif UPPER(l_task_type_name) = 'PROCESS'
    then
    l_task_type := 'ProcessFlow';
    else
    l_task_type := l_task_type_name;
    end if;
    l_task_name := p_task_name ;
    l_location_name := p_location_name ;
    dbms_output.put_line('| location_name=' || l_location_name);
    dbms_output.put_line('| task_type=' || l_task_type);
    dbms_output.put_line('| task_name=' || l_task_name);
    -- Decode Parameters
    begin
    -- Prepare Execution
    dbms_output.put_line('Stage 2: Opening Task');
    l_audit_execution_id := ${RUNREP}.wb_rt_api_exec.open(l_task_type, l_task_name, l_location_name);
    dbms_output.put_line('| l_audit_execution_id=' || to_char(l_audit_execution_id));
    commit;
    -- Override Parameters
    p_parameters:=p_system_params;
    p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_SYSTEM;
    l_anchor_offset:= 1;
    l_start_offset:= 1;
    l_equals_offset:=0;
    l_comma_offset:=0;
    l_value_offset:=0;
    l_esc_offset:=0;
    l_esc_count:=0;
    l_esc_char:=null;
    l_parameter_name:=null;
    l_parameter_value:=null;
    begin
    loop
    l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
    exit when l_equals_offset = 0;
    l_start_offset := l_equals_offset + 1;
    loop
    l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
    if l_comma_offset = 0
    then
    l_comma_offset := length(p_parameters) + 1;
    exit;
    else
    l_esc_count := 0;
    l_esc_offset := l_comma_offset - 1;
    loop
    l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
    exit when l_esc_char != '\';
    l_esc_count := l_esc_count + 1;
    l_esc_offset := l_esc_offset - 1;
    end loop;
    if MOD(l_esc_count, 2) != 0
    then
    l_start_offset := l_comma_offset + 1;
    else
    exit;
    end if;
    end if;
    end loop;
    l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
    l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
    -- Override Input Parameter
    ${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
    exit when l_comma_offset >= length(p_parameters)-1;
    l_start_offset := l_comma_offset + 1;
    l_anchor_offset := l_start_offset;
    end loop;
    end;
    p_parameters:=p_custom_params;
    p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_CUSTOM;
    l_anchor_offset:= 1;
    l_start_offset:= 1;
    l_equals_offset:=0;
    l_comma_offset:=0;
    l_value_offset:=0;
    l_esc_offset:=0;
    l_esc_count:=0;
    l_esc_char:=null;
    l_parameter_name:=null;
    l_parameter_value:=null;
    begin
    loop
    l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
    exit when l_equals_offset = 0;
    l_start_offset := l_equals_offset + 1;
    loop
    l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
    if l_comma_offset = 0
    then
    l_comma_offset := length(p_parameters) + 1;
    exit;
    else
    l_esc_count := 0;
    l_esc_offset := l_comma_offset - 1;
    loop
    l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
    exit when l_esc_char != '\';
    l_esc_count := l_esc_count + 1;
    l_esc_offset := l_esc_offset - 1;
    end loop;
    if MOD(l_esc_count, 2) != 0
    then
    l_start_offset := l_comma_offset + 1;
    else
    exit;
    end if;
    end if;
    end loop;
    l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
    l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
    -- Override Input Parameter
    ${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
    exit when l_comma_offset >= length(p_parameters)-1;
    l_start_offset := l_comma_offset + 1;
    l_anchor_offset := l_start_offset;
    end loop;
    end;
    -- Execute
    dbms_output.put_line('Stage 4: Executing Task');
    l_audit_result := ${RUNREP}.wb_rt_api_exec.execute(l_audit_execution_id);
    if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
    then
    l_audit_result_disp := 'SUCCESS';
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
    then
    l_audit_result_disp := 'WARNING';
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE
    then
    l_audit_result_disp := 'FAILURE';
    else
    l_audit_result_disp := 'UNKNOWN';
    end if;
    dbms_output.put_line('| l_audit_result=' || to_char(l_audit_result) || ' (' || l_audit_result_disp || ')');
    -- Finish Execution
    dbms_output.put_line('Stage 5: Closing Task');
    ${RUNREP}.wb_rt_api_exec.close(l_audit_execution_id);
    commit;
    dbms_output.put_line('Stage 6: Processing Result');
    if l_oem_style
    then
    if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
    then
    l_return := 0;
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
    then
    l_return := 0;
    else
    l_return := l_audit_result;
    end if;
    else
    l_return := l_audit_result;
    end if;
    dbms_output.put_line('| exit=' || to_char(l_return));
    if (l_return = 3) then
    raise fout;
    elsif (l_return = 2 ) then
    raise opgepast;
    end if;
    exception
    when fout then
    raise_application_error(-20002, 'Error during executing task');
    when opgepast then
    raise_application_error(-20003, 'Warning during executing task');
    when no_data_found
    then
    raise_application_error(-20001, 'Task not found - Please check the Task Type, Name and Location are correct.');
    end;
    dbms_output.put_line('| exit=' || to_char(l_return));
    end ;
    EOF
    exitcode=${?}
    if [ ${exitcode} -ne 0 ]
    then
         echo "Exitcode = ${exitcode}" >> ${LOGFILE}     
         fout_melding "OWBRUN ${MAPPING} "
         exit ${exitcode}
    else
         echo "OWBRUN succesfull" >> ${LOGFILE}
    fi
    echo "---------------------------------------------------------------------" >> ${LOGFILE}
    echo "Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
    echo "Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    echo "Terminated succesfull" >> ${LOGFILE}
    echo "---------------------------------------------------------------------" >> ${LOGFILE}
    echo "Stop     : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
    times >> ${STATSFILE}
    #echo "Loader Statistics" >> ${LOGFILE}
    #awk -f ${BASEPATH}/bin/loadstat.awk ${STATSFILE} >> ${LOGFILE}
    #${BASEPATH}/bin/loadstat.ksh -s ${SCHEMA} -f ${STATSFILE}
    exit 0

Maybe you are looking for

  • Long text problem while uploading Inspection plan through BDC.

    Hi, I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking

  • My iPod Touch 5th Generation no longer connects to my computer

    It used to work, but now it doesn't. When I plug the wire into the wall, it works just fine, but I can't update any of my music anymore. I have only had the thing for about four months. I would appreciate if there was a solution that didn't require b

  • Change of Profile name

    I encountered a new problem that I hope you can help me with.  Everything was going along ok.  I created 3 new courses in the Course Manager and as part of it I changed the name in my profile (might have been a mistake). Now even though I am using th

  • BBM Z10 not opening after app updates...​.Urgent solution needed please!!!.

    I did some applications updates yesterday and since then the BBM application on my Z10 refuse to open. Applications updated were afrinolly(v1.4.3.2), Adobe reader(10.1.0.4), box(1.2.0.79), and blackberry maps(10.0.0.639).Have tried the hard reset but

  • XML implementation for Oracle8i

    Hi, I have been following these threads as I will be working with an application that is using XML for the data very soon. When I spoke to your support group they said that if I needed to use IFS or ConText I would have to upgrade to Oracle 8.1.6. Ho