ORA-27121 on 8.1.6 SE

Hello ALL
A faced the following problem
during installtaion 8.1.6 Standard
Edition on my Debian 2.2
After software installation
database creation failed
I tried to run
createseed.sh manualy and
get ORA-27121: unable to determine size
of shared memory segment
Linux Error: 13: Permission denied
Changing shared pool size from
initial 15M to smallest 3.5M
didn't help
What is wrong?
null

This is what happened to me just today,but I have experienced the same problem on tru64 unix, with sticky bit not in place for the following files: $ORACLE_HOME/bin/oracle and $ORACLE_HOME/bin/oracleO. Once you restore those files via tar command (this is what happened to me), the sticky bit disappears, and you have to re-introduce it by issuing unix command: chmod 1777 on those files.
What it does for you - it allows you to execute the sql statements as an oracle user & group!
In other words, if you try to run sqlplus via user / password, you get an error:
ORA-01034:ORACLE not available
ORA-27121: unable to determin size of shared memory segment
Compaq Tru64 UNIX Error: 13: Permission denied
This should not be a problem if you try and execute the same sql statements using listener (connecting to the server by using @ statement).
I hope this helps

Similar Messages

  • Not able to startup Database- getting "ORA-27121" error

    Hi All,
    When i try to start database it fails with the below error.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to an idle instance.
    SQL> !echo $ORACLE_HOME
    /glohd/Oracle10g/product/10.2.0/db_2
    SQL> !echo $ORACLE_SID
    ORATECH
    SQL> !ls -al $ORACLE_HOME/bin/oracle
    -rwsr-s--x 1 oracle dba 131619960 Nov 06 2007 /glohd/Oracle10g/product/10.2.0/db_2/bin/oracle
    SQL> startup
    ORA-27121: unable to determine size of shared memory segment
    IBM AIX RISC System/6000 Error: 13: Permission denied
    SQL>
    I doubt on shared memory permission but im not clear on that. Below is the output of 'ipcs -a'
    $ipcs -a |grep oracle
    m 80740369 0xf80b125c rw-r--- oracle staff oracle staff 0 1610620928 21758186 17826150 14:30:12 14:46:02 11:39:05
    $
    Please help me to solve this :(
    Thanks
    Karti

    Well, yours probably is the only case where I have seen the other group mentioned as Staff, never have seen it otherwise. This is what my 11106 db looks like on OEL 5.1
    [oracle@edhdr2p0-orcl ~]$ ls -l /u01/app/oracle/
    total 24
    drwxr-x---   3 oracle oinstall 4096 Aug 21  2007 admin
    drwxr-xr-x   5 oracle oinstall 4096 Aug 21  2007 cfgtoollogs
    drwxrwxr-x  11 oracle oinstall 4096 Aug 21  2007 diag
    drwxr-x---   3 oracle oinstall 4096 Aug 21  2007 flash_recovery_area
    drwxr-x---   3 oracle oinstall 4096 Aug 21  2007 oradata
    drwxr-xr-x   3 oracle oinstall 4096 Aug 21  2007 productSo I suggested that it should be Oinstall.
    Aman....

  • Re1:ORA-27121

    My system is Unix UX (HP). The permission in ORACLE_HOME are ok. the value of SHMMAX kernel parameter is OK.
    The result of ipcs command is:
    Shared Memory:
    m 0 0x411c0231 --rw-rw-rw-      root      root
    m 1 0x4e0c0002 --rw-rw-rw-      root      root
    m 2 0x41201121 --rw-rw-rw-      root      root
    m 9731 0xa07a3d94 rw-r--- oracle oinstall
    m 8196 0x435dce60 --rw-rw-rw-      root      root
    m 6 0x431c1e5d --rw-rw-rw-    daemon      root
    Semaphores:
    s 0 0x411c0231 --ra-ra-ra-      root      root
    s 1 0x4e0c0002 --ra-ra-ra-      root      root
    s 2 0x41201121 --ra-ra-ra-      root      root
    s 3 0x00446f6e ra-rr-- root root
    s 4 0x00446f6d ra-rr-- root root
    s 5 0x01090522 ra-rr-- root root
    s 6 0x612008b0 --ra-ra-ra-      root      root
    s 7 0x732008b0 --ra-ra-ra-      root      root
    s 8 0x702008b0 --ra-ra-ra-      root      root
    s 9 0x692008b0 --ra-ra-ra-      root      root
    s 10 0x752008b0 --ra-ra-ra-      root      root
    s 11 0x632008b0 --ra-ra-ra-      root      root
    s 12 0x642008b0 --ra-ra-ra-      root      root
    s 13 0x662008b0 --ra-ra-ra-      root      root
    s 14 0x6c2008b0 --ra-ra-ra-      root      root
    s 15 0x6d2008b0 --ra-ra-ra-      root      root
    s 16 0x6f2008b0 --ra-ra-ra-      root      root
    s 17 0x4518170b --ra-ra-ra-      root      root
    s 18 0x4118170b --ra-ra-ra-      root      root
    s 19 0x410c043f --ra-ra-ra-      root      root
    s 28692 0x990bb388 ra-r--- oracle oinstall
    s 4117 0x4c1c1e5d ra-rr-- daemon root
    s 22 0x522008b0 --ra-ra-ra-      root      root
    But if enter in plsql with another user differet to oracle there is this error. Where is the error ?

    After you change the kernel parameters , Do you reboot your system ?
    Joel P�rez

  • How to call PL/SQL function from JSP ?

    We have the JSP application developed using the JDeveloper 3.0. I am trying to call the PL/SQL DB function. I'm trying to use the method of ApplicationModule:
    .getTransaction().executeCommand(sCommand)
    The problem is that I can not get the function result back to JSP. The executeCommand() does not seem to accept any host variables.
    What to do ? Did anyone manage to get the feedback from DB ?
    Here is the code in the JSP page:
    <%! String res=" ";%>
    <jsp:useBean id="rsn"
    class="oracle.jbo.html.databeans.TRSRowSetNavigator"
    scope="request" >
    <%
    rsn.initialize(application,session, request,response,
    out,"theIMO_trs_bc4J_Bc4JModule.AuctionsListView");
    rsn.setReleaseApplicationResources(true);
    // this is the ID to be copied
    String copy_id = request.getParameter(TRS.LOOK_UP_PK_FIELD);
    if( copy_id != null) {
    // call the PL/SQL procedure to create copy of this auction
    String sCommand = "DECLARE a NUMBER; BEGIN :res:=Copy_Auction("
    copy_id"); END;";
    rsn.getRowSet().getApplicationModule().getTransaction().executeCommand(sCommand);
    rsn.getRowSet().getApplicationModule().getTransaction().commit();
    I receive the following error:
    Error Message: JBO-27121: SQL error during statement execution. Statement: DECLARE a NUMBER; BEGIN :res:=Copy_Auction(45); END;
    JBO Error:JBO-27121: SQL error during statement execution. Statement: DECLARE a NUMBER; BEGIN :res:=Copy_Auction(45); END;: ORA-01008: not all variables bound
    What criteria has the host variable meet to be used in the executeCommand(sCommand) method ?
    Thanks,
    Michael
    null

    I could be wrong there, but I have experienced similar problem on tru64 unix, with sticky bit not in place for the following files: $ORACLE_HOME/bin/oracle and $ORACLE_HOME/bin/oracleO. Once you restore those files via tar command (this is what happened to me), the sticky bit disappears, and you have to re-introduce it by issuing unix command: chmod 1777 on those files.
    What it does for you - it allows you to execute the sql statements as an oracle user & group!
    Otherwise, if this bit is lost, whenever you try to connect to sqlplus via user / password it hits you back with:
    ORA-01034 ORACLE not available
    ORA-27121 unable to determine size of shared memory segment
    Compaq Tru64 UNIX Error: 13:Permission denied
    This should not be a problem if you try and execute the same sql statements using listener (connecting to the server by using @ statement).
    I could be late in response to you, but maybe not for other people.

  • SQL*Loader permission issue?

    I have set up a run_all script on LINUX to invoke SQL*Loader for each table to be loaded. I can run this as the Oracle owner just fine. When I try to let the developer run this on dev, they get the following:
    SQL*Loader: Release 9.2.0.1.0 - Production on Tue Apr 25 08:55:18 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL*Loader-128: unable to begin a session
    ORA-01034: ORACLE not available
    ORA-27121: unable to determine size of shared memory segment
    Linux Error: 13: Permission denied
    They can use SQL*Plus on the command line with the userid and password from the SQL*Loader file. I don't want to have to run these for them every time, so any help or ideas would be greatly appreciated!

    Hi
    Has the same ORACLE_HOME variable value of the Oracle owner and the developer?
    Ott Karesz
    http://www.trendo-kft.hu

  • Cannot connect to database without giving  @databasename in the sqlplus com

    Hi i need to give sqlplus username/password@databasename to connect to the database
    I have given the correct ORACLE_SID
    if i give only sqlplus username/password then i recieve this error
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27121: unable to determine size of shared memory segment
    IBM AIX RISC System/6000 Error: 13: Permission denied

    Which means the shared memory segment representing the SGA has incorrect permissions.
    You can verify those by running
    ipcs -m
    Likely you have a faulty install and didn't run root.sh and/or rootpre.sh.
    You need to verify the correct permissions in the installation documentation.
    The oracle executable and the tnslistener executable need to have the suid bit set.
    Sybrand Bakker
    Senior Oracle DBA

  • Export for system copy fails - Error 9 (Bad file number)

    Hello all,
    I am attempting to perform the export phase for a hetergenous system copy on our BI system (BI 7.0 - NW2004s).  This system runs on HP-UX 11.11 using Oracle  10.2.0.2 and will be migrated to Windows Server 2003 and MS SQL Server 2005, once the export is complete.
    While running sapinst to export the data from the source system, there are several input dialog screens that are skipped, which means I am not able to enter all the paramters used for the export.  After seeing this behavior from sapinst, I reviewed the sapinst.log and sapinst_dev.log files and find the warning/error "System call failed. Error 9 (Bad file number)".  I have included a portion of these files below.
    I have reviewed notes 546006 and 583861, but these seem to refer to an Oracle error ORA-27121, but I am not receiving any Oracle errors in sapinst.log or the Oracle alert log.  I have looked for possible permission or ownership problems with any of the SAP or Oracle files, but have not found any that were incorrect.  Also, these errors do not specify which file sapinst is having problems with, so I do not have  a specific file or area to check.
    If anyone has seen something similar to this and has any suggestions, I would greatly appreciate any help.
    sapinst.log details:
    INFO 2009-02-14 15:15:51.67
    Execute step collect of component |NW_Export|ind|ind|ind|ind|0|0|NW_GetSidFromProfiles|ind|ind|ind|ind|1|0|NW_readProfileDir|ind|ind
    |ind|ind|0|0
    INFO 2009-02-14 15:15:52.737
    Account bwpadm already exists.
    WARNING 2009-02-14 15:15:52.747
    System call failed. Error 9 (Bad file number) in execution of system call 'getgrent' with parameter (), line (292) in file (syuxcuse
    r.cpp).
    INFO 2009-02-14 15:15:52.757
    Account 0 already exists.
    WARNING 2009-02-14 15:15:52.777
    System call failed. Error 9 (Bad file number) in execution of system call 'getgrent' with parameter (), line (292) in file (syuxcuse
    r.cpp).
    INFO 2009-02-14 15:15:52.777
    Account 200 already exists.
    WARNING 2009-02-14 15:15:52.827
    System call failed. Error 9 (Bad file number) in execution of system call 'getgrent' with parameter (), line (292) in file (syuxcuse
    r.cpp).
    INFO 2009-02-14 15:16:04.937
    Creating file /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/EXP/CENTRAL/AS/EXP/ypcat.log.
    INFO 2009-02-14 15:16:05.007
    Output of ypcat passwd.byname is written to the logfile ypcat.log.
    sapinst_dev.log details:
    TRACE      2009-02-14 15:15:52.737
    2009-02-14 15:15:52.743 NW._getSAPMount() done: /sapmnt
    INFO       2009-02-14 15:15:52.737 [syuxcaccmg.cpp:227]
               bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account bwpadm already exists.
    TRACE      2009-02-14 15:15:52.747 [syuxcuser.cpp:1943]
               CSyUserImpl_getOsInfos(ILogBook *m_logBook, iastring sName, iastring sID, tSyUserInfo& msUserinfo)
    getspnam(bwpadm) returned NULL.
    WARNING    2009-02-14 15:15:52.747 [syxxsyshlp.cpp:78]
               syslib::printOSError(const iastring &, int, DWORD, const iastring &, CMessage::eLogMessage)
    System call failed. Error 9 (Bad file number) in execution of system call 'getgrent' with parameter (), line (292) in file (syuxcuse
    r.cpp).
    Regards,
    Rusty Robbins

    Hello Peter,
    Thanks for the reply. I did confirm the points you made, and have the details below.
    1. check filesystem, if you have enough space, especially /tmp
    All filesystems have available space, and /tmp has 310 MB available, before the start of sapinst.
    2. check again alert log, trace log for Oracle,
    I could not find any errors in the alert_SID.log or any unusual trace files.
    3. How did you run sapinst? Are you using "root" account.
    I am running sapinst as user root and I am following all the recomendations in the system copy guide (at least as far as I can tell.  ;p )
    We have four BI systems in this landscape, and the other three have migrated successfully.  The procedure I am using, is the same as for the other 3 systems and uses the same SAP media directory that was used on the other systems.
    One other item that may be part of my problem here, is that this system is the production system, and was originally installed as a high-availability system, using HP-UX Service Guard for clustering.  Currently, this system does not have fail-over enabled, but of course the cluster is still intact.  One required piece of the Service Guard enviornment is the use of a virtual hostname.  This seems to resolve successfully by sapinst, as I see the correct (virtual) hostname referenced several times.  While this is a clustered system (for fail-over purposes), the CI and DB are installed on the same host.  So it is not a distributed system, and if failover had been initiated, it would fail both the CI and DB instance, which is the same and only SAP instance.
    This did raise one question in my mind, however.  I am attempting to extract this using the following menu path within sapinst.
    SAP NetWeaver 7.0 Support Release 3  --> Software Life-Cycle Options --> System Copy --> Oracle --> Source System Export --> Central System --> Based on AS ABAP and AS Java
    Since this does use Service Guard, but is not a distributed system, should I be using a different path in the sapinst tree, for the export?  I have only performed a migration using the above path, so I am not familar with the detailf of the other types, such as High-Availabitly or Distributed-System.
    Regards,
    Rusty

  • Database is not comming up. 'ORACLE not available' error

    I have two servers and one master backup server. Sun OS version 10 and Oracle 10 standarded edition are installed in three servers. Database files are saved in EMC storage and storage is mounted to the server while transactions are going on. Once I mounted the storage on the master backup server, database is started. This is my environment.
    In my case, while database is runing on master backup server, some one has unmounted the storage without shutting down the database. So I manually killed all oracle processes and remount the storage. Then tried to start the database, but database was not comming up and only one entry is there in the alert log saying 'instance is starting' and following message was given.
    ORA-01034: ORACLE not available
    ORA-27121: unable to determine size of shared memory segment
    : 13: Permission denied
    As well as I can't see any oracle processes are running.
    Then I tried to mount the other server's storage volumes and start its database on the master backup server. Fortunatly it was started successfully.Then I tried to remount my first server and start the database. Again it was failed. Finally I restarted the server and problem solved. So I need to clarify what the reason to happen this situation. Please give me a proper solution as I am not an experienced DBA.
    Each time I tried to log into the database locally.
    Thank you.

    Hey Man,,
    I think the problem with the server name or IP try this;
    Try to check the host name, I have the same problem (on windows).
    I checked the host name in system32/drivers/etc/hosts.
    in this file find out the ip and name of ur machine, if some thing wrong there make ur own entry with ur machine ip and name. (do not alter existing entries add your own entry)
    and then reboot the system
    Hope this will work.

  • DB startup failed

    Hi All,
    I am getting the following error when starting the server:
    IBM AIX RISC System/6000 Error: 13: Permission Denied
    R3trans: connect check finished with error code 12
    ora 27121
    DB startup failed
    What is to be done?
    Plz help me with this.
    Regards,
    Archana

    Hi Archana,
    This look like an authorization issue, Check that all the Oracle services are running and the DB is online, check that the listener is running, check authorizations. You can also check dev_ms, dev_disp and dev_w0, for more info about the error.
    Hope this help
    Juan
    Please reward with points if helpful

  • Cannot create database

    Hello ALL
    I cannot create a database
    on my 8.1.6 SE
    After software installation
    database creation failed
    I looked through the problem
    and when I tried to run
    createseed.sh manualy I
    get ORA-27121: unable to determine size
    of shared memory segment
    Linux Error: 13: Permission denied
    My OS (Debian/GNU/Linux 2.2) Is ok
    as I run 8.0.5 smoothly
    null

    Are you able to connect through svrmgrl?
    If so, you should let dbassist save the craetion scripts and run them from a xterm-window. This worked for me

  • PRD Down -Unable to start DB from startsap command

    We accidently changed the permissions on /oracle/SID/ folder and
    after that when we do "startsap" we are getting following error.
    GPILPRD:gpradm 66> startsap
    Checking GPR Database
    Database is not available via R3trans
    Running /usr/sap/GPR/SYS/exe/run/startdb
    Trying to start GPR database ...
    Log file: /home/gpradm/startdb.log
    /usr/sap/GPR/SYS/exe/run/startdb: Terminating with error code 12
    DB startup failed
    The "R3trans -d" output trans.log with the message and
    permissions of $ORACLE_HOME directory.
    Furthermore , we are able to start the database by logging into SIDADM
    user and database is in open state. However when we do startsap from
    sidadm user we are facing mentioned issue.
    Regards

    Output of trans.log---
    4 ETW000 R3trans version 6.14 (release 701 - 23.07.10 - 09:23:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 08.04.2011 - 19:02:48
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Fri Apr  8 19:02:48 2011                                                 449  0.000449
    4 ETW000  [dev trc     ,00000]  db_con_init called                                                        21  0.000470
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                                                 26  0.000496
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/GPR/SYS/exe/run/dboraslib.so' ...            31  0.000527
    4 ETW000  [dev trc     ,00000]  DlLoadLib() success: dlopen("/usr/sap/GPR/SYS/exe/run/dboraslib.so"), hdl 0
    4 ETW000                                                                                35020  0.035547
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/GPR/SYS/exe/run/dboraslib.so' loaded                   108  0.035655
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/GPR/SYS/exe/run/dboraslib.so
    4 ETW000                                                                                95  0.035750
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/GPR/SYS/exe/run/dboraslib.so' is "700.08", patchlevel (0.110)
    4 ETW000                                                                                357  0.036107
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/GPR/SYS/exe/run/dboraslib.so
    4 ETW000                                                                                36  0.036143
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/GPR/SYS/exe/run/dboraslib.so
    4 ETW000                                                                                59  0.036202
    4 ETW000  [dev trc     ,00000]  New connection 0 created                                                  31  0.036233
    4 ETW000  [dev trc     ,00000]  000: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , hc = NO , perm = YES,
    4 ETW000                             reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                                48  0.036281
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                                             51  0.036332
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:                19  0.036351
    4 ETW000  [dev trc     ,00000]  000: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , hc = NO , perm = YES,
    4 ETW000                             reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                                44  0.036395
    4 ETW000  [dev trc     ,00000]  -->oci_init1                                                             522  0.036917
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.4.0', (dbsl 701 140910)                   125  0.037042
    4 ETW000  [dev trc     ,00000]    Default connection: tnsname ='GPR'                                      21  0.037063
    4 ETW000  [dev trc     ,00000]  -->oci_initialize(con_hdl=0, char='', nchar='')                           21  0.037084
    4 ETW000  [dev trc     ,00000]  application info callback registered                                      18  0.037102
    4 ETW000  [dev trc     ,00000]  OCIEnvCreate(mode=16384=OCI_UTF16) returned 0 (for default NLS handle)
    4 ETW000                                                                                39515  0.076617
    4 ETW000  [dev trc     ,00000]     OCIHandleAlloc(OCI_HTYPE_ERROR, con_hdl=0, ErrHp=0x60000000010a2070)
    4 ETW000                                                                                102  0.076719
    4 ETW000  [dev trc     ,00000]     OCIHandleAlloc(OCI_HTYPE_ERROR, con_hdl=0, ErrBt=0x60000000010b2c28)
    4 ETW000                                                                                33  0.076752
    4 ETW000  [dev trc     ,00000]  NLS env. settings: lang=0041004D00450052004900430041004E00000000000000000000000000000000
    4 ETW000                                                                                238  0.076990
    4 ETW000  [dev trc     ,00000]                     terr=0041004D00450052004900430041000000000000000000000000000000000000
    4 ETW000                                                                                39  0.077029
    4 ETW000  [dev trc     ,00000]                     char=0055005400460031003600000000000000000000000000000000000000000000
    4 ETW000                                                                                38  0.077067
    4 ETW000  [dev trc     ,00000]  Client character set UTF16 -> UTF8                                        20  0.077087
    4 ETW000  [dev trc     ,00000]  Client NLS setting (OCINlsGetInfo): connection handle 0 -> 'AMERICAN_AMERICA.UTF8'
    4 ETW000                                                                                31  0.077118
    4 ETW000  [dev trc     ,00000]  charset='', chset='UTF8', UNI_ASC=FALSE/FALSE                             19  0.077137
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password                               36  0.077173
    4 ETW000  [dev trc     ,00000]  Connecting as /@GPR on connection 0 (nls_hdl 0) ... (dbsl 701 140910)
    4 ETW000                                                                                31  0.077204
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet                   EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                                45  0.077249
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      0x600000000109a5c0 0x60000000010a2070 0x60000000010b2c28
    4 ETW000                                                                                32  0.077281
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0                           53  0.077334
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                                          24  0.077358
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server GPR (con_hdl=0,svchp=0x60000000010b2b58,srvhp=0x60000000010b6a08)
    4 ETW000                                                                                35  0.077393
    4 ETW000  [dev trc     ,00000]  Assigning server context 0x60000000010b6a08 to service context 0x60000000010b2b58
    4 ETW000                                                                                57395  0.134788
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                                           116  0.134904
    4 ETW000  [dev trc     ,00000]  Starting user session: OCISessionBegin(con_hdl=0, usr='/',svchp=0x60000000010b2b58, srvhp=0x60000000010b6a08, usrhp=0x60000000011454d0)
    4 ETW000                                                                                67  0.134971
    4 ETW000  [dev trc     ,00000]     OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR                6044  0.141015
    4 ETW000  [dev trc     ,00000]     OCISessionBegin(OCI_DEFAULT) failed with SQL error 1034:              241  0.141256
    4 ETW000  [dev trc     ,00000]     ORA-01034: ORACLE not available                                        28  0.141284
    4 ETW000                        ORA-27121: unable to determine size of shared memory segment
    4 ETW000                        HPUX-ia64 Error: 13: Permissi
    4 ETW000  [dev trc     ,00000]     on denied                                                                               
    4 ETW000                                                                                70  0.141354
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=0x60000000010b6a08)                 22  0.141376
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x60000000010b2b58,srvhp=0x60000000010b6a08)
    4 ETW000                                                                                33  0.141409
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 0x60000000010b6a08 from con_hdl=0
    4 ETW000                                                                                993  0.142402
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'                         65  0.142467
    4 ETW000  [dev trc     ,00000]     set_ocica() -> SQL error code 1034                                     22  0.142489
    4 ETW000  [dev trc     ,00000]  -->oci_get_errmsg (con_hdl=0, rc=1034)                                    85  0.142574
    4 ETW000  [dev trc     ,00000]     OCIErrorGet -> SQL error code: 1034                                   125  0.142699
    4 ETW000  [dev trc     ,00000]     ORA-01034: ORACLE not available                                        26  0.142725
    4 ETW000                        ORA-27121: unable to determine size of shared memory segment
    4 ETW000                        HPUX-ia64 Error: 13: Permissi
    4 ETW000  [dev trc     ,00000]     on denied                                                                               
    4 ETW000                                                                                47  0.142772
    4 ETW000  [dev trc     ,00000]  SAPUSER or connect error 99=DBSL_ERR_DB, oerr=1034.                       46  0.142818
    4 ETW000  [dblink      ,00433]  ***LOG BY2=>sql error 1034   performing CON [dblink#4 @ 433]             240  0.143058
    4 ETW000  [dblink      ,00433]  ***LOG BY0=>ORA-01034: ORACLE not available                               27  0.143085
    4 ETW000                        ORA-27121: unable to determine size of shared memory segment
    4 ETW000                        HPUX-ia64 Error: 13: Permission denied [dblink#4 @ 433]
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'GPR'"

  • Production Release Install Issues on Linux

    I just upgraded from the beta to the production relase on Linux (Suse 10.0).
    The following issues were easy enough to bypass, but should be fixed in the next release nevertheless, to allow a Linux installation as smooth as under Windows:
    * calculation of required swap space: when I installed the beta in November I had 512MB RAM and 1GB swap - no problem at all. Meanwhile I upgraded to 1GB RAM, 1GB swap. The production release complained during install. Why would I need more swap to install Oracle after upgrading RAM? Should the script not instead check total memory (RAM+swap) and be happy?
    * second, related issue: the installer complained that I had only 850MB swap space, it supposedly required 1GB. Fact: I have 1GB swap space, but about 150MB were used at that time. Instead of checking the total swap space, the installer checked the free swap space. Solution was easy enough: swapoff -a ; swapon -a. All swap space free, installer runs...
    * during configuration (/etc/init.d/oracle-xe configure) I selected not to automatically start Oracle at boot time. This set the ORACLE_DBENABLED variable (in /etc/sysconfig/oracle-xe) to false. Unfortunately this variable is used in /etc/init.d/oracle-xe to check before 'start' and 'stop'. As a result it was not possible to manually start and stop the database. Solution: either don't check the variable before start and stop or - as I did: set ORACLE_DBENABLED to true and prevent start at boot time by editing the runlevels (as should be).
    Other than that: great product and great timing! Keep up the good work! Thanks a lot!
    Cheers,
    Peter

    As an addendum to the above, I noticed that sqlplus failed wouldn't run - it was failing with messages such as:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27121: unable to determine size of shared memory segment
    Linux Error: 13: Permission denied
    and:
    ERROR:
    ORA-27140: attach to post/wait facility failed
    Through scanning countless posts on this forum the solution turned out to be:
    chmod u+s `which oracle`
    chmod g+s `which oracle`
    Speaking as someone who is in Oracle's target audience for this product (small company, currently using open source DBs), I have to say that my experience of installing Oracle was pretty painful and was far more hassle than PostgreSQL, MySQL or even (heaven forbid) SQLServer. Come on Oracle, you can do better than this!

  • Connecting sysdba as root user :ORA-12547: TNS:lost contact

    Hi
    Oracle software/databases installed as oracle user
    when i tried to connect to sysdba as root user
    sdp1:/oracle/product/11.2.0/bin# sqlplus '/ as sysdba'
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 7 05:08:16 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /oracle/product/11.2.0
    System name: AIX
    Node name: sdp1
    Release: 1
    Version: 6
    Machine: 00056514D700
    Instance name: main
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 0
    Unix process pid: 25559200, image: oracle@sdp1
    *** 2013-01-07 05:08:17.098
    skgm error 27121: errno = 13, info = 3, 1048584, 0, 0, 0, 0, 0
    ERROR:
    ORA-12547: TNS:lost contact

    Hi,
    root is not - and must not be - member of dba group.
    You must perform your operation under the oracle (or whatsoever) unix account, either bu su - or by sudo -

  • PL/SQL report errors: ORA-01422

    Hi all,
    (before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..)
    I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some schemas not all..
    When i select one schema, it is supposed to display one row.. when i select [ALL] it is supposed to show them all.
    It does work if i select '[ALL]' from the select list (p3_schema_name), just not for every single individual one.
    the error code:
    ORA-01422: exact fetch returns more than requested number of rows
    declare
      vSchema  varchar2(20);
      vStmt  varchar2(1000);
      vVersion number(5);
      vDBName  varchar2(20);
      vHostName varchar2(80);
      vStmt2  varchar2(1000);
      vVersion2 number(5);
      vDBName2  varchar2(20);
      vServer2 varchar2(80);
      vSchema2 varchar2(80);
      CURSOR c_schemas IS
        select owner from dba_tables@P3_DB_NAME.db_link where table_name = 'DDL_LOG' and num_rows > 0 order by owner;
    begin
      IF :P3_SCHEMA_NAME != '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
        vServer2 := :P3_SERVER_NAME;
        vSchema2 := :P3_SCHEMA_NAME;
          vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM';
          Execute Immediate vStmt2 into vDBName2, vVersion2;
            htp.p('<br>');
            htp.p('<table border="1">');
            htp.p('<tr>');
            htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
            htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
            htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
            htp.p('<th bgcolor="#FFCC99">PATCH</th>');
            htp.p('</tr>');
            htp.p('<tr>');
            htp.p('<td>');
            htp.p(vServer2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vDBName2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vSchema2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vVersion2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p('<BR>');
            htp.p('</td>');
            htp.p('</tr>');
            htp.p('</tr>');
            htp.p('</table>');
       ELSE IF :P3_SCHEMA_NAME = '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
       vHostName := :P3_SERVER_NAME;
       vDBName := :P3_DB_NAME;
         open c_schemas;
          htp.p('<br>');
          htp.p('<table border="1">');
          htp.p('<tr>');
          htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
          htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
          htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
          htp.p('<th bgcolor="#FFCC99">PATCH</th>');
          htp.p('</tr>');
        LOOP
          FETCH c_schemas INTO vSchema;
          EXIT WHEN c_schemas%NOTFOUND;
          vStmt  := 'select max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link where DDH_SCHEMA_NR = (select max(DDH_SCHEMA_NR) from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link) and rownum < 2' ;
          Execute Immediate vStmt into vVersion  ;
          htp.p('<tr>');
          htp.p('<td>');
          htp.p(vHostName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vDBName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vSchema);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vVersion);
          htp.p('</td>');
          htp.p('<td>');
          htp.p('<BR>');
          htp.p('</td>');
          htp.p('</tr>');
        END LOOP;
          htp.p('</tr>');
          htp.p('</table>');  
      CLOSE c_schemas;
    END IF;
    END IF;
    END;I have checked the DDH_SCHEMA_NR for repeating entries of the highest number.. some of the ones that dont work do have repeating entries some don't.
    Sorry if this is confusing, i have tried to explain it as best as i can.
    Thanks in advance for any help.
    Ashleigh

    Hello Ashleigh,
    Based on your code, I'd start by running this piece of SQL via command-line (thru SQL Workshop, SQL*Plus, Toad, etc.), replacing &P3_SCHEMA_NAME. and &P3_DB_NAME. with values that are currently causing the routine to fail and see if it returns more than one row. I don't know your data, but DISTINCT and GROUP BY are typically used to return multiple (though grouped/summarized) rows. It appears to be the only statement that would cause the error your seeing (more than one row being returned into single variables).
    select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM;I'm actually surprised that the code runs at all. I didn't think 'execute immediate' would know what to do with substitutions indicated as "&something." (I've typically seen that when substituting in dynamic HTML/Javascript code but maybe I'm learning something new). But since you already have vServer2 and vSchema2, I'd be more apt to code it as:
    vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from ' ||
    vSchema2 || '.ddl_log@' || vServer2 || '.db_link GROUP BY DDH_DB_NM';Hope this helps,
    John

  • Ora-00604 error and ora 01000 error while report generation.

    hi all,
    I am trying to generate the multiple reports of same template through a program.
    While this job is running, i get the following error at the BIP console and the reports don't get generated.
    [101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Kindly help.
    Thanks.

    Lots of resources with a simple search to see what this is about, for example:
    http://www.orafaq.com/wiki/ORA-01000
    ORA-01000:     maximum open cursors exceeded
    Cause:     A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
    Action:     Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
    open_cursors parameter
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
    Oracle support note:
    OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)

Maybe you are looking for

  • Two iPods - One computer

    How do I get two different iTunes accounts with only one computer. There is my mentally challenged son's iPod and then I have one too. Obviously I don't want the same songs on my iPod that he has on his. How do I open two different iTunes accounts or

  • Goods receipt for reservation

    Hi The user is trying to post a goods receipt for a reservation. The reservation is for 1 PKG. While doing so, the following error message is encountered 'Deficit of SL unrestricted use 1 PKG: 901-00085 1001 1001'. Here the material no is 901-00085 a

  • When to use MDM

    Hi! All, 1.I am in  a doubt when to use MDM? If I am having R/3 at all my centres, Do I still need MDM? 2.Is MDM only meant for integrating different ERP Packages?

  • Canon digi camera movies cause iPhoto to crash.

    I have a Black Macbook running the latest updates of OSX, quicktime, and iPhoto 6 and I am unable to upload movies, that I make on my Canon Ixus65 (like an elph). I thought it may be my camera, but I get the same result with my father's camera which

  • Migrate Single Node 10g STreams to Multi Node RAC

    We are currently running 10g STreams. One capture process enqueing LCR into one queue. Propagation job dequeues messages and propagates them to a Destination queue. Then our Apply process at Destination database dequeues and apply changes. We have de