8i: cannot create db. svrmgrl ORA-01012 not connected.

Hi,
running redhat 6.0, glibc2.1.1-6, kernel 2.2.5-15, egcs-1.1.2-12,
on my PII400 I tried to install 8i. After some problems with the
installer (you'd better not use defaults) and dbassist I was
ready to create the db. I let dbassist save the configuration to
a set of scripts. when I started the initial script
(sql<sid>.sh), I got a huge list of errors due to the fact , that
the server manager was not able to connect to the database. But
the processes were running. After having stopped the db processes
I tried to follow the creation procedure step by step:
export ORACLE_SID=db01
export LD_LIBRARY_PATH=...
svrmgrl
connect / as sysdba
startup pfile=/ora/0/app/oracle/admin/db01/pfile/initdb01.ora
And at this point the processes started (ps aux |grep ora_) but I
was kicked out of the server manager immediately, which threw
an error:
ORA-01012: Not connected
I tried to log in again to start the creation of files,
tablespaces and db objects.
svrmgrl
connect / as sysdba
Connected. ( <- look at this ... )
create database
ORA-01012 Not connected. ( <- ... and this! )
I really don't know where to search for a solution.
Rolf
null

What does your alert log say?
Are there any trace files in bdump or udump?
How much RAM do you have?
I originally had 64MB in my Dell Inspirion and I got all
sorts of weird error messages just trying to startup a tiny
database.
I upped it to 128MB and things run fine.
Create your own database create scripts. You can control the
process better that way.
Be sure to "set echo on" and spool the create process to a log
file to see what is happening.
Because the create process is often able to create a few files,
like the control files, before it will fail (depending on what
is wrong, of course).
Then your next create attempt will fail because those files exist
and it will disconnect you because a disconnect is often found at
the end of the create scripts (I always delete the disconnects
too).
Also make sure any of the background processes are shutdown
before running the create scripts again (pmon,smon,etc).
Just connect internal and do shutdown.
Rolf Becker (guest) wrote:
: Hi,
: running redhat 6.0, glibc2.1.1-6, kernel 2.2.5-15,
egcs-1.1.2-12,
: on my PII400 I tried to install 8i. After some problems with
the
: installer (you'd better not use defaults) and dbassist I was
: ready to create the db. I let dbassist save the configuration
to
: a set of scripts. when I started the initial script
: (sql<sid>.sh), I got a huge list of errors due to the fact ,
that
: the server manager was not able to connect to the database. But
: the processes were running. After having stopped the db
processes
: I tried to follow the creation procedure step by step:
: export ORACLE_SID=db01
: export LD_LIBRARY_PATH=...
: svrmgrl
: connect / as sysdba
: startup pfile=/ora/0/app/oracle/admin/db01/pfile/initdb01.ora
: And at this point the processes started (ps aux |grep ora_) but
I
: was kicked out of the server manager immediately, which threw
: an error:
: ORA-01012: Not connected
: I tried to log in again to start the creation of files,
: tablespaces and db objects.
: svrmgrl
: connect / as sysdba
: Connected. ( <- look at this ... )
: create database
: ORA-01012 Not connected. ( <- ... and this! )
: I really don't know where to search for a solution.
: Rolf
null

Similar Messages

  • ORA-01012 NOT LOGGED ON

    Hi All,
    Today I faced a new kind of problem. Today morning I had load testing of our application(JDE APPLICATION) when I reached office and monitor ORACLE PROCESS for that database it shown me 604 where as I defined the processes=600... I am using 10.2.0.4 and OS -> HP-UX...
    $ ps -ef|grep -i "<DBNAME>|wc -l is the command I used to check the number of OS Oracle process.
    So I immediately tried to log in via listener and as expected it was giving error regarding TNS could not resolved service name bla bla bla...
    Then I saw the listener process was in a blocked state :-(
    I thought of killing some inactive sessions by connected as sysdba..
    SO I wrote export ORACLE_SID=<DBNAME>
    sqlplus / as sysdba
    shown me connected...
    but when I issued
    show parameter db_name
    then it gave me
    SQL> ORA-01012 not connected...
    previously I have seen such overflowing of Oracle processes But then for sysdba login never thrown me this error...
    I asked my application team to stop the services so that I can kill some oracle processes from OS level...
    But I am not sure what to do with this kind of situation if that too happened in my PRODUCTION DB.. :-(
    Please suggest.....
    Please let me know if you need any other information regarding this...
    Thank you..

    1 lsnrctl stop
    2 kill a few sessions
    3 logon as / AS SYSDBA
    4 SELECT USERNAME, MACHINE , COUNT(*) FROM V$SESSION GROUP BY USERNAME, MACHINE;
    thank you for your reply...
    after stopping I tried to log in same error I got.... after stopping how can I kill few sessions when I don't get a chance to log in as sysdba ? :-(
    are talking kill few session from OS??
    thank you..

  • THE DATABASE CONNECTION IS LOST :;; WIERD  ORA-01012 NOT LOGGED ON ERROR

    ERROR: ORA-01012 NOT LOGGED ON ERROR
    I AM USING A JAVA SWING INTERFACE (JDK 1.1.8), WHICH USES JNI TO CALL C PROGRAMS WHICH IN TURN CONNECTS TO THE DATABASE, ORACLE 8.1.6.
    A DATABASE CONNECTION IS ESTABLISED IN THE MAIN CLASS BY CALLING A FUNCTION FROM THE CONSTRUCTOR.
    FOR ALL OTHER FUNCTION CALLS WHICH ARE MADE FROM WITHIN THIS CONSTRUCTOR, THE CONNECTION STAYS.
    BUT AFTER THE CONTRUCTOR CALL IS COMPLETE, DATABASE CONNECTION IS STRANGELY LOST. THUS ALL OTHER FUNCTION CALLS FAIL BECAUSE OF CONNECTION ISSUES GIVING ORA-01012. THOUGH IF I CHECK UP IN THE DATABASE, THE CONNECTION DOES FIND AN ENTRY.
    SO IT APPEARS THAT SOMEHOW THE JAVA INTERFACE LOOSES TRACK OF CONNECTION. BUT STRANGELY ALL THE FUNCTIONS WORK IF CALLED FROM THE CONSTRUCTOR......... BUT THATS NOT THE IDEA.
    PLEASE HELP, THIS PROBLEM IS BUGGING ME FOR WEEKS NOW.
    THANKS
    AMIT

    apologise for the caps lock.
    i am working on a previous system with java swing front end which alread uses jni, and connects to database using pro *c.
    My problem is that the connection is lost as soon as the constructor of the main class is run, giving an
    ORA-1012 NOT LOGGED ON ERROR.
    But if i place the same calls in the contructor all the database call work.
    It somehow appears that the java interface looses the connection context. Though the session does find entry in the oracle dynamic tables as long as i dont close the front end main window, thereby meaning that its the jave interface which looses the context.
    part of the code of the main class eiquser.
    //constructor
    public EiqUser() {
         super();
         initMRI();
    private void initMRI() {
         try {
              /* initialize geoManager environment */
              int rccc = new EiqCfuncs().eiqInitEnv();
    //eiqinitenv is a c function which connects to database using pro *C
              EiqCfuncs cfuncs = new EiqCfuncs();
              //EiqCfuncs has the prototypes of c functions used bye the java interface
              this.ivjFileMenu.setText(cfuncs.eiqGetText(resNum.getTEXT_FILE_MENU())); // sets the menu name
    and so on.........
    public void eiqUser_WindowClosed(java.awt.event.WindowEvent windowEvent) {
         new EiqCfuncs().eiqTermEnv(); // gives ora-1012 error
    //eiqtermenv is supposed to disconnect from data base, but returns an ora-1012 not logged on erro
         return;
    //eiqtermenv closes the connection with the data base. But fails in this case. if i place the same call ( eiqtermenv) in the initMRI function or the contructor it succeeds.
    Plus if i dont use the java interace and use a c stub for executing the same sequence of functions, then i dont face any problems.
    the proc calls exectuted ultimately by...
    :::eiqinitenv
    exec sql connect using :sqlid identified by sqlpw; // succeeds giving sqlerr.sqlcode=0;
    ::::eiqterm env
    exec sql commit work; //fails giving 0ra-1012 error
    exec sql rollback work;
    Why is the java interface loosing track of the connection once done with the constructor of the main class?? The session still finds an entry in the oracle dynamic tables.
    Please help
    Thx
    Amit

  • ERROR at line 1:ORA-01012: not logged on

    Hi ,i installed OID and the owner of the binaries and database(repository ) is Oracle and then i cahnged the permissions to 775 and now when i am trying to logon to a db(locally) using a different user x who is member of DBA group its saying not logged on .Is something wrong with permissions?
    env|grep ORA
    ORACLE_SID=oidtest
    PS1=[${ME}:${UNAME}:${ORACLE_SID}] ${PWD} >
    ORACLE_HOME=/amoidts1/OID
    [amoidts1:panther:oidtest] /home/amoidts1 > sqlplus
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Nov 21 19:24:37 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected.
    SQL> select * from v$database;
    select * from v$database
    ERROR at line 1:
    ORA-01012: not logged on

    What oracle version?
    Probably there is not enough OS resources.
    *Process J000 died, kkjcre1p: unable to spawn jobq slave process [ID 833613.1]*

  • Getting Error ORA-01012: not logged on while connecting as sys

    We have just upgraded from Oracle 8.1.7 to Oracle 9.2.0.5. Currently we have 2 databases in oracle 9i - db2 and scen. scen has been newly upgraded to Oracle 9i.
    When I set the ORACLE_SID to scen (as per entry in oratab), and connect to sqlplus using sys / as sysdba, it connects to an idle instance. and displays the error message ORA-01012: not logged on. I do not encounter this when I connect to the other database db2. There should be some settings which have been missed out.
    Could anybody help me out with this....

    I managed to get the settings corrected.Thanks anyway....

  • Oracle Instance shows connected,Yet am ORA-01012: not logged on

    Hi experts,
    Please help in log in to my database, which unfortunately was happening an hour before, but now it is not working
    In between I only did a change in some permission stuff for my base directory, but later brought it back to original permissions.
    Still it is haunting me..
    I have set up my SID/HOME/PATH perfectly, tried to check processes at OS level, they are less, still nothing is happening though database is up and running.
    I can see it at OS level and through ALert log..
    ==================
    oracle@dap-csw-ora01 /home/oracle > ps -ef|grep pmon
    oracle 3145946 1 0 18 feb - 0:44 asm_pmon_+ASM1
    oracle 7995430 1 0 18 feb - 0:50 ora_pmon_adobe_2
    oracle 13828212 11141232 0 14:59:09 pts/0 0:00 grep pmon
    oracle 7471386 1 0 18 feb - 0:57 ora_pmon_fxss_1
    oracle@dap-csw-ora01 /home/oracle > sqlplus
    SQL*Plus: Release 11.2.0.3.0 Production on Thu Feb 21 14:59:12 2013
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter user-name: /as sysdba
    Connected.
    SQL> show user
    USER is "SYS"
    SQL> select instance_name,status from v$Instance;
    select instance_name,status from v$Instance
    ERROR at line 1:
    ORA-01012: not logged on
    Process ID: 0
    Session ID: 0 Serial number: 0

    CKPT wrote:
    Now I understood,..it is not a problem with permission something else is making this mess..though unknown..
    I bounced one of the database after taking permission from apps team, Now it works perfect...no issue whatsoever..
    But I want to know the reason..I dont want to face it any more...Whenever oracle installs[OUI], It knows well what the permissions to be assigned and what needed.
    You should not disturb them, What are the users, groups, executable, read, write permissions earlier and after changes and now?
    And i interestingly wanted to know why you wanted to test such things on production. Its like playing with fire so be cautious or else it costs a lot :)Basha,
    I don't think that there was any other way for the OP to solve the error. Either he could wait (which doesn't help normally in this error) or had to bounce the db, which he did. Also, with permission he meant, telling to the App team and than going for a bounce. I can't a mentioning of changing permissions anywhere .
    Aman....

  • Error: ORA-01012: not logged on

    Hi all,
    i have a program to update 2 tables and will commit every transaction for each table. firstly, my program will commit transaction in Table A then once it's done, it will commit Table B and loop again(both table) until all transactions finish.But at the end of the process, i get the error msg:
    Error: ORA-01012: not logged on
    I suspected this error because of COMMIT issue in my program.
    Kindly need someone to assist me.
    Here i attached my code for your reference.
    EXEC SQL DECLARE fs_cursor CURSOR FOR SELECT fs.FILE_ID FROM FILE_STATUS fs
    where fs.JOB_ID = 'brm_pymntd01l' and fs.status = 'N'
    FOR UPDATE OF fs.STATUS;
    EXEC SQL OPEN fs_cursor;
    EXEC SQL WHENEVER NOT FOUND DO break;
    for (;;)
    rec_ctr = 0;
    /** Reset the sqlcode **/
    sqlca.sqlcode=0;
    EXEC SQL FETCH fs_cursor INTO :FILEID;
    EXEC SQL DECLARE ft_cursor CURSOR FOR SELECT FT.RECORD_ID FROM FILE_DETAIL FT WHERE FT.STATUS = 'N' AND FT.FILE_ID = :FILEID;
              EXEC SQL OPEN ft_cursor;
    EXEC SQL WHENEVER NOT FOUND DO break;           
    if ( sqlca.sqlcode == 0)
    for (;;)
                   EXEC SQL FETCH ft_cursor INTO :RECORD_ID;
    EXEC SQL DECLARE fd_cursor ...
    FROM FILE_DETAIL fd where fd.RECORD_ID = :RECORD_ID and fd.file_id = :FILEID FOR UPDATE OF fd.STATUS;
    EXEC SQL OPEN fd_cursor;
    /** Reset the sqlcode **/
    sqlca.sqlcode=0;
    EXEC SQL FETCH fd_cursor INTO :COL1, :COL2, :COL3, :COL4, :COL5, :COL6, :COL7, :COL8, :COL9,
    :COL10, :COL11, :COL13, :COL14, :COL15,
    :COL16, :COL19, :COL20, :COL21, :COL22, :COL24, :COL25, :COL26, :COL27, :STATUS;
    if (validate_record(dbschema,logfp,&ebuf))
    trim_spaces();
    process_flag = process(ctxp, database, &ebuf, logfp, dbschema);
    time(&status_upd_date);
    strcpy(current_time, ctime(&status_upd_date));
    if(process_flag == PROCESS_SUCCESS)
    if (updateChargeEvent == 1) {
    PIN_ERR_LOG_MSG(PIN_ERR_LEVEL_DEBUG, "*******Update Charge Event\0");
    ret = update_charge_event(ctxp, database, &ebuf, ACCOUNT_NO, PAYMENT_DATE);
    if(ret != 1)
    strcpy(NEW_STATUS, "P");
    sprintf(msg,"Transaction [PUKAL update status] error. Please check cm.pinlog.");
    strcpy(REC_ERROR_CODE, ERR_GET_UPD_PUKAL_EVENT);
    strcpy(REC_ERROR_DESCR,msg);
    log(msg, logfp);
    log("\n",logfp);
    }else{
    strcpy(NEW_STATUS, "C");
    strcpy(NEXT_BILL_T, NEXT_BILL_DATE);
    else if (rebateSucess != 0)
    strcpy(NEW_STATUS, "P");
    sprintf(msg,"Transaction [apply_rebate] error. Please check cm.pinlog.");
    strcpy(REC_ERROR_CODE, ERR_GET_APPLY_REBATE);
    strcpy(REC_ERROR_DESCR,msg);
    log(msg, logfp);
    log("\n",logfp);
    else {
    strcpy(NEXT_BILL_T, NEXT_BILL_DATE);
    strcpy(NEW_STATUS, "C");
    EXEC SQL UPDATE FILE_DETAIL
    SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY'),
    COL23 = :NEXT_BILL_DATE,
    COL27 = :COLUMN_27
    WHERE RECORD_ID = :RECORD_ID;
    else
    strcpy(NEW_STATUS, "F");
    EXEC SQL UPDATE FILE_DETAIL
    SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY'),
    ERROR_CODE = :REC_ERROR_CODE,
    ERROR_DESC = :REC_ERROR_DESCR
    WHERE RECORD_ID = :RECORD_ID;
    ret = JOB_WARNING;
    else
    strcpy(NEW_STATUS, "F");
    EXEC SQL UPDATE FILE_DETAIL
    SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY'),
    ERROR_CODE = :REC_ERROR_CODE,
    ERROR_DESC = :REC_ERROR_DESCR
    WHERE RECORD_ID = :RECORD_ID;
    ret = JOB_WARNING;
    else{   
    PIN_ERR_LOG_MSG(PIN_ERR_LEVEL_DEBUG, "Error running query");
    printf("\nError: %.70s \n",sqlca.sqlerrm.sqlerrmc);
    EXEC SQL CLOSE fd_cursor;
         EXEC SQL COMMIT;
         rec_ctr ++;
         EXEC SQL CLOSE ft_cursor;
    time(&status_upd_date);
    strcpy(current_time, ctime(&status_upd_date));
    if (rec_ctr > 0)
    /* Check if all records had failed, one record had failed
    or everything is successfully processed. Then update
    file_status table. */
    int ret_status;
    ret_status = updateFileStatus(dbschema, FILEID, logfp);
    if (ret_status == ALL_REC_FAILED)
    strcpy(NEW_STATUS, "F");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
    else if (ret_status == ONE_REC_FAILED)
    strcpy(NEW_STATUS, "P");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
    else if (ret_status == ALL_SUCCESS)
    strcpy(NEW_STATUS, "C");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
    /* Else do nothing error handling is done within
    * the function. */
    else{}
    else{
    /*If its an empty file, update file_status to 'C'
    so that the program will no longer fetch this record
    on the next run. */
    strcpy(NEW_STATUS, "C");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
         EXEC SQL COMMIT WORK RELEASE;
    //process by not update by per transaction at staging
         EXEC SQL CLOSE fs_cursor;
    if(sqlca.sqlcode == 0)
    ret = JOB_SUCCESS;
    else
    EXEC SQL ROLLBACK WORK RELEASE;
    Thank a lots!

    what data did not get COMMITted?

  • ORA-01012: not logged on error while Moving data file with BrTools

    Hi,
        I'm trying to move a data file to another windows drive with BrTools.
    It fails before it actually starts to move the file. The error it shows is:
    ORA-01012: not logged on.
    Thanks,
    Anil.

    Hi,
    BRSPACE  has a command option -u to specify the Database user and password. How ever BRSPACE connects to the database as SYSDBA, you do not have to specify the user and password if the operating system user belongs to the dba group.SO check if the user is falling in DBA group with proper authorizations.
    PLease reward points for useful answers.
    Regards,
    Phani

  • ORA-01012 not logged (critical).

    Hi Gurus,
    My database is running with spfile, And i chaged processes parameter to 20(before that its 150).
    After i reboot my database with srvctl cmd, successfully its restarted,
    Then i can connect to the database. I given the below cmd getting error...
    SQL> sho parameter db_name
    ORA-01012: not logged on
    Could any one tell me solution??
    Thanks in advance.

    can you please mention your OS, db version?
    Did you check the Oracle services? Are those running fine. Check the alert log if the database is up OPEN..

  • SQLLDR run command line fails:  ORA-03114: not connected to ORACLE

    We moved our db (11.2.0.3) to a new server (VM) and cannot get sql loader direct load to run for a non-oracle db owner account without specifying a connection string (@DB). I have the environment set up correctly for this user and can connect to the database via sqlplus.
    sqlldr dba1 control=test.ctl direct=yes <==FAILS
    Password:
    SQL*Loader: Release 11.2.0.3.0 - Production on Fri May 17 13:00:32 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    SQL*Loader-925: Error while uldlfca: OCIStmtExecute (ptc_hp)
    ORA-03114: not connected to ORACLE
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    sqlldr dba1@DB control=test.ctl direct=yes <==SUCCESSFUL
    Password:
    SQL*Loader: Release 11.2.0.3.0 - Production on Fri May 17 12:59:11 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

    My thoughts were along the line that the environment for user x not set up correctly but I verified ORACLE_SID & ORACLE_HOME prior to posting. This user's environment references TNS_ADMIN so I'm sending you the tnsnames.ora from that location.
    Please note that I can execute this logged in as the db binary owner (environment set the same as user x).
    DWQ1 =
    (DESCRIPTION =
    (ENABLE = BROKEN)
    (ADDRESS = (HOST = xxxx)(PORT = 1521)(PROTOCOL = TCP) )
    (CONNECT_DATA =
    (SERVICE_NAME = DWQ1)
    )

  • "cannot create jbcd driver of class " for connect URL 'null'" error

    I am trying to get an application that is currently working fine on a Windows platform to work in a Linux environment.
    One thing that is different from my setup in Windows, and also one that I have no experience with, is the Linux-Ubuntu default install of Apache uses Virtual Hosts and Tomcat's equivalent multiple sessions.
    I'm running the app out of the usr/share/tomcat6/webapps/msgboard instance of Tomcat vs var/lib/tomcat6.
    I am calling the application from Apache Virtual Host port 80 using mod_jk. The application cannot run under native Tomcat because of the extensive use of PHP. Everything else in the application is working correctly including a DWR (Ajax) servlet. However I also tried a simple test app from native Tomcat and got the same results.
    I also tried connecting with jdbc:mysql://localhost:3306/msgboard?autoreconnect=true&user=root&password=password at the terminal prompt and got
    bash: jdbc:mysql://localhost/msgboard?autoreconnect=true: No such file or directory
    [1]7074
    [2] 7048
    [1] Exit 127 jdbc:mysql://localhost/msgboard?autoreconnect=true
    [2]+ Donesyslog error is
    Feb 23, 2009 3:01:51 PM org.directwebremoting.util.CommonsLoggingOutput info INFO: Exec: Online.getPosts()
    Feb 23 15:01:51 ubuntu jsvc.exec[6779]: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Feb 23 15:01:51 ubuntu jsvc.exec[6779]: Caused by: java.sql.SQLException: No suitable driverFollowing is all the pertinent setup info for reference and critique. Any suggestions would be greatly appreciated.
    Apache2.2
    Tomcat6
    JDBC
    mod_jk
    Java (not sure what ver, it's the default Ubuntu install ver.)
    PHP
    Currently I am pointing to mysql-connector-java.jar in my CLASSPATH at /usr/share/java/mysql-connector-java.jar added symlinks commons-dbcp.jar, commons-logging.jar to usr/share/tomcat6/lib
    Application is deployed from usr/share/tomcat6/webapps/msgboard
    The basic code snippet in class calling the jdbc
    WEB-INF/classes/dbLink.class
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/msgboardDB");
    WEB-INF/web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app id="msgboard">
    <display-name>Message Board</display-name>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/msgboardDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    META-INF/context.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Context path="/msgboard" docBase="msgboard"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/msgboardDB"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="100"
    maxIdle="30"
    maxWait="10000"
    username="root"
    password="thePassword"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/msgboard?autoReconnect=true"/>
    </Context>
    I also included a symlink to this in var/lib/tomcat6/config named msgboard.xml
    per instruction at http://ubuntuforums.org/showthread.php?t=430133 and have since removed it.
    my.cnf
    [client]
    port = 3306
    bind-address = 127.0.0.1
    permissions set in /etc/tomcat6/policy.d/04webapps.policy
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    per instruction at http://ubuntuforums.org/showthread.php?t=430133
    other permiissions set /etc/tomcat6/policy.d/50local.policy
    grant codeBase "file:/usr/share/tomcat6/webapps/msgboard/-" {
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    grant codeBase "file:/usr/share/tomcat6/webapps/msgboard/WEB-INF/classes/-" {
    permission java.io.FilePermission "/usr/share/tomcat6/webapps/msgboard/WEB-INF/classes/logging.properties", "read";
    grant codeBase "jar:file:/usr/share/tomcat6/webapps/msgboard/WEB-INF/lib/mysql-connector-java-5.1.6.jar!/-" {
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    I even tried setting Tomcat Security to "no" per instruction at
    http://webui.sourcelabs.com/ubuntu/mail/user/threads/Tomcat_connecting_to_MySQL_-Ubuntu8.10_Server.meta
    http://ubuntuforums.org/showthread.php?t=1034957&highlight=apache+tomcat+jdbc
    http://ubuntuforums.org/showthread.php?t=66615
    http://ubuntuforums.org/showthread.php?t=33601&highlight=java+mysql
    http://ubuntuforums.org/showthread.php?t=430133
    http://programminglinuxblog.blogspot.com/2008/03/connection-pooling-with-java-all.html
    http://webui.sourcelabs.com/ubuntu/mail/user/threads/Tomcat_connecting_to_MySQL_-Ubuntu8.10_Server.meta

    SOLUTION
    I had to add
    <Resource name="jdbc/webappDB"
         auth="Container"
         type="javax.sql.DataSource"
            maxActive="100"
         maxIdle="30"
         maxWait="10000"
            username="root"
         password="password"
         driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost:3306/webapp?autoReconnect=true"/>into /var/lib/tomcat6/conf/Catalina/localhost/ webapp.xml
    Note: the above context file was created automatically after deploying the webapp. I had to add the <resource> to it.
    The context I created in usr/share/tomcat_home/webapp/META_INF/context.xml is still there and has the same <resource>.defined in it. I did not verify whether or not it still needs to be there.
    After that I had to add two policies
    /var/lib/tomcat6/conf/policy.d/03catalina.policy
    grant {
    permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.dbcp.*";
    and 04webapps.policy
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    That did the trick!
    Other things that were done but have not been verified as to have any bearing on this issue.
    I changed the active java from openjdk to java-sun
    I added $tomcat_home/lib:$tomcat_home/lib/mysql-connector.jar:$tomcat_home/lib/commons-dbcp.jar to PATH
    Changed CLASSPATH=usr/share/classpath:usr/share/java/commons-dbcp.jar:usr/share/java/mysql-connector.jar
    Edited by: wlbragg on Feb 25, 2009 12:58 AM
    Edited by: wlbragg on Feb 25, 2009 12:59 AM
    Edited by: wlbragg on Feb 25, 2009 1:11 AM

  • SQLPlus COPY error: ORA-03114: not connected to ORACLE

    This is what I'm trying to do:
    I'm logged into an Oracle 8.1.6 database on a Windows 2000 Professional box and trying to copy data and tables from an Oracle 7.3.4 database on an HP/UX box.
    I log into my 8.1.6 SQLPlus as:
    scott/tiger@testdb
    Then I run the following:
    SQL> set copycommit 1
    SQL> set arraysize 1000
    SQL> copy from user/user1@devp1 -
    create reps_t -
    using -
    select * from reps_tThis is my error:
    ORA-03114: not connected to ORACLE
    Can someone give me a better understand how SQLPlus COPY works and give me an idea how to locate the problems.
    Thanks,
    Laith E.H.
    null

    I think this combination user/user1@devp1
    is not ok.
    U can get good material about copy command
    from technet itself. Just search for Copy

  • HT201263 forgot passcode on ipad and i cannot restore  because it says ipad not connected to net

    forgot passcode on ipad and i cannot restore  because it says ipad not connected to net

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • [Oracle][ODBC][Ora]ORA-03114 not connected

    I' have oracle 10g express edition.
    I use a c++ windows service administration connections and a Visual Basic program.
    Vb invoke to c++ service, this create the connection and keep.
    Vb invoke the interface exposed to c++ service to execute sentence and when c++ service want execute, this error appears [Oracle][ODBC][Ora]ORA-03114 not connected.
    What happens???
    Thanks..

    Are you using a Vb .net ?
    if yes look for this link http://support.microsoft.com/default.aspx?scid=kb;en-us;830173
    If no, the connection when using sqlplus works fine ?
    cheers

  • What do i do if my internet is wep and i need it to be wpa2 because my ipod touch 4th gen connects to the internet but when i click on safari or itunes it says safari cannot open the page because its not connected to the internet

    what do i do if my internet is wep and i need it to be wpa2 because my ipod touch 4th gen connects to the internet but when i click on safari or itunes it says safari cannot open the page because its not connected to the internet. i have contacted apple support and they said to change from wep to wpa2 but when i change it to wpa2 and type in password and connect on my laptop it says the saved setting on this computer for the network do not match the require ments of the network

    My 2nd gen works fine with WPA2 and AES encryption.
    You may need to go back and start over.  Reset the router back to factory defaults, log on as the admin, set up security, DHCP, and make sure the IP address pool has enough IP addresses to lease to ALL of the computers/devices that will connect to that the router.

Maybe you are looking for

  • How to edit content on formerly signed document

    We use signed PDF documents to contain customer order characterization information.  The PDF is setup as an interactive form which is modified for the customer.  Some fields are text while others are check boxes, etc.  Sometimes there is a need to re

  • JScrollPane's scroll bar alignment

    I tried all the suggested methods, and yet I still get the vertical scroll bar aligned somewhere in the middle when the JFrame opens, when top alignment would be preferable... Any suggestion on this is more than welcome. My code is structured with ne

  • No sound on start up

    Hi We have been on holiday recently and while away my youview box updated. Since then when switching the box on from standby and switching on the tv I do not get any sound. If I then change channel the sound comes on. Has anyone else got this problem

  • Docment Type.. for cheque details

    Hi experts, I am developing a report for displaying all  the cheque payment details done on last day. in that i have to select the data for document type 'KZ/DZ' only. i am fetching the data form PAYR but in that table documnt type is not exist. So f

  • Can isync with v3c, but can't send files?

    i am able to sync my v3c via isync (ical & my address book) but i am unable to either "send file" or "browse device". suggestions?