Oracle Shutdown From Sqlplus ???

I want to shutdown oracle 10g rel 2 using sqlplus (shutdown Normal not abort). I start sqlplus in nolog mode then connect through sys as sysdba, shutdown abort is working But normal is not working BCZ acting session is current session.

Use [Shutdown Immediate |http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/start.htm#sthref589] clause
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Similar Messages

  • Newbie blues: Oracle Sql Developer showing different data from Sqlplus.

    Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
    First of all; it would be difficult to know less about Oracle than myself.
    I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
    I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
    In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
    I wanted other views of the data and so logged in from the command line using SQLPlus.
    The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
    No fun ! What am I not understanding here ?

    5e33d18c-3b32-48d4-82a7-676feeaa97c9 wrote:
    Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
    First of all; it would be difficult to know less about Oracle than myself.
    I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
    I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
    In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
    I wanted other views of the data and so logged in from the command line using SQLPlus.
    The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
    No fun ! What am I not understanding here ?
    Others sessions never see uncommitted data
    > then wrote code to delete some rows. Lots of fun.
    did you ever actually issue COMMIT so other session can see the changed data?

  • Oracle Spatial Query from SQLPLUS deteriorates in performance

    Hi,
    I am running an sql-procedure, which does spatial queries. When I run this procedure (from SQLPLUS) for the first time it takes around 45 sec to complete, but when I run the same procedure for the second time it takes 65 seconds and the performance keeps on decreasing. But if I open a new SQLPLUS session it takes 45 secs and it also starts deteriorating subsequently. This strange behaviour is only for spatial queries, if I don't have spatial queries in my procedure then its fine.
    I found this behaviour for any type of spatial query.
    Is there something which can be done for improving it ? I found a lot of information on improving performance of a query, but my problem is to maintain the same performance of the same query in the same session.
    Thanks,
    Rishi

    Hi,
    Could you provide version information?
    Also, could you try monitoring memory as the procedure is running an see
    if memory climbs more each time the procedure is run?
    Thanks

  • Oracle Migration from Oracle9i to Oracle10g

    Dear Experts,
    We are going for oracle migration from Oracle9i to Oracle10g.
    Could you please help us to know that what are the points we need to keep in mind while migration.
    Is there any checklist for that.
    Thanks in Advance.

    user8725480 wrote:
    Dear Experts,
    We are going for oracle migration from Oracle9i to Oracle10g.
    Could you please help us to know that what are the points we need to keep in mind while migration.
    Is there any checklist for that.
    Thanks in Advance.You can use manual or using exp/imp can upgrade your database.
    1.Take cold backup from 9i database.
    2.Install 10g software and create need directories and restore cold backup
    3.Startup database with upgrade option
    sqlplus "/as sysdba"
    startup upgrade pfile='pfile_location'
    @$ORACLE_HOME/rdbms/admin/catupgrd.sql;
    shutdown immediate;
    startup pfile='pfile_location'
    @$ORACLE_HOME/rdbms/admin/utlrp.sql;For more information refer
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/preup.htm#BABCEIFB
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/preup.htm#i1007814

  • Startup and shutdown from command line with version 9i

    Hi, i'm an Oracle newbie. I heard it's possible to startup and shutdown an oracle (instance? or database? which one is it) from the command line.
    A little background on what it is that I want to do:
    I'm looking to backup a database by copying the files that make up the database to a location from where they will be commited to tape media. To do this I must shutdown the database, copy the files, and startup the database again.
    At the moment the backups are full exports which I find unnecessary since it is a development database which is never used at night. It is therefore not an issue if we want to shut it down and re-start it after a few minutes. (I think it would take longer to export as opposed to copy the files right?)
    I need help and advice :
    1. Is my way of going about this correct ?
    2. How do I startup/shutdown from the command line (sqlplus user/password command) or should I use another utility ?
    Thanks,
    Gabriel

    set oracle_sid=ORCL ==> your database namethis is NOT always true. It's instance name. usually, we set instance name is same as database name.But we also can set instance name is different from database name.
    for example.
    C:\>oradim -new -sid abc123
    C:\>set ORACLE_SID=abc123
    C:\>sqlplus /nolog
    SQL*Plus: Release 9.0.1.4.0 - Production on Tue Jun 20 22:40:59 2006
    (c) Copyright 2001 Oracle Corporation.  All rights reserved.
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup pfile=E:\ora901DB\admin\init.ora
    ORACLE instance started.
    Total System Global Area  344748244 bytes
    Fixed Size                   282836 bytes
    Variable Size             184549376 bytes
    Database Buffers          159383552 bytes
    Redo Buffers                 532480 bytes
    Database mounted.
    Database opened.
    SQL> select name from v$database;
    NAME
    DB901
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    abc123

  • Call PL/SQL Procedure (not stored) from SQLPLUS

    Hello,
    the following code creates a stored procedure and allows to call the procedure from SQLPLUS using EXEC.
    CREATE or REPLACE PROCEDURE welcome IS
    BEGIN
        dbms_output.put_line('Welcome user ' || user);
    END;
    exec welcome;I would like to do the same without storing the procedure. The procedure should be defined in an PL/SQL-Script and called in a SQLPLUS loop. On the one hand I do not have the privileges to create stored procdures. On the other hand I want to use put_line in the loop. Without passing control to SQLPLUS (e.g. the loop-master) all output is kept in the buffer and no information are shown during processing the data.
    Regards, Rainer

    netaktiv wrote:
    There should be a repair job updating many hundredthousends records. A script should be created and called only once and the calling user should be informed about the processing status. There is no need for heavy output, but after 5000 or 10000 records I would like to display a message saying nnnnn records processed.Then you need another mechanism to report the current status to the user.
    You cannot use the current session to do that. Sessions are serialised. That means they can do only service a single request at a time. So if the session executes procedure foo that updates 100's of 1000's of rows - then that is what the process will be doing. The procedure can only report back to the client after it has completed. It cannot interact directly with the client during the executing of that procedure.
    This means that if you want to actually send a notification to the client, you need to do that via a separate session. E.g. the 1st session executes procedure foo that performs the update. That procedure sends a notification (using DBMS_ALERT or DBMS_PIPE for example) to the 2nd session - where the 2nd session receives the asynchronous notification and reports that to the user.
    Another method would be for the update procedure to register a long operation using DBMS_APPLICATION_INFO. This enables another session to view the status and progress of the update procedure via virtual (v$) performance views.
    Another method would be for the client session not to start the update procedure itself. Instead it can schedule a background job (using DBMS_JPB or DBMS_SCHEDULER interfaces) - and then monitor the status of the job.
    Also suggest that you spend some time familiarising yourself with application developer fundamentals and concepts for Oracle. There are guides for both at http://tahiti.orcacle.com for the Oracle version you use. You cannot correctly use Oracle if you do not understand how Oracle works and what the application development features are. And your current approach using DBMS_OUTPUT is pretty much flawed and not how Oracle sessions should report their processing status to a client.

  • Error in connecting Oracle Database from JAVA application!!!

    Hi,
    I am trying to connect to the Oracle11g database server from the client machine using JAVA eclipse. I have installed the oracle client in the client machine. Once i try to execute the below code it was throwing below error:
    public class Dbconnect {
    public static void main (String[] args)throws Exception {
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    String connectString = "jdbc:oracle:thin:@<IP Address>:1521:orcl";
    OracleDriver drivers = new OracleDriver();
    System.out.println(drivers);
    Connection connection = null;
    connection = (OracleConnection)DriverManager.getConnection(connectString,"ADMIN", "admin");
    System.out.println(connection);
    System.out.println("Connected to the database");
    Error:
    java.sql.SQLException: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at DBConnect.main(DBConnect.java:15)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:359)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:672)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:237)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
         ... 7 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:141)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:123)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:337)
         ... 12 more
    I am unable to connect using sqlplus as well ORA-12560: TNS:protocol adapter error
    Please advise me on how to resolve this issue..
    Thanks

    Prabhu wrote:
    We are not able to connect from SQLplus as we.. If i issue this command in Sqlplus from client machine 'sqlplus admin/admin@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<Ip Adddress>)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'' it was throwing the below error.
    Error: ORA-12541: TNS:no listener
    Do i need add get any config details in the client machine..
    Could please tell me what is the general procedure to access the DB server from client machine..on DB Server issue following OS commands
    lsnrctl start
    lsnrctl status
    lsnrctl service
    COPT commands & results, then PASTE all back here

  • Trying to access 10gr2 database from sqlplus utility but it connects to 11g

    Hi All,
    I am facing below issue while access 10gr2 database from sqlplus.
    I am having two oracle homes on one server one belongs to 11gr2 and another belongs to 10gr2.
    I want to access a 10gr2 database through sqlplus utility.but instaed of connecting to 10gr2 it is connecting to 11gr2 after I enter a user name and passowrd.
    I have set all the env variables such as oracle_home ,oracle_sid and path with respect to Oracle 10gr2.
    Can you please let me kno what I need to do to connect to 10gr2 database and not 11gr2 database through sql plus.
    Let me know if I need to give any more details on this.
    Best Regards,
    Dipti S

    Hi Rocky,
    I got the resolution.
    I made a mistake by creating an oracle instance/service(e.g. fsdmo) when Oracle_home was pointing to 11gR2 Directory.so that service was refering to 11gr2 oracle home.
    hence when I was setting oracle_sid(fsdmo) and trying to access database instance from 11g sqlplus utility ,it was directing to 11g and not 10g since oracle service was pointing to 11g.
    So now after chnaging the oracle home directory to 11g,I am creating a service and its working fine.
    thank you so much for responding.
    hope I am clear with my reply.
    Best Regards,
    Dipti S

  • Error in reading sp(Oracle 9i)  from java.

    Hello,
    While I am reading sp,it returns a result set,in java an error is occuring.Anybody can help me for solving this problem.I am attching the java code,error message and procedure below.
    import java.sql.*;
    public class CallOracleProc
    public static void main(String[] argv)
    Connection conn=null;
    ResultSet rs=null;
    CallableStatement cstmt=null;
    try
         Class.forName("oracle.jdbc.driver.OracleDriver");
         conn=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.56:1521:hpcl","uday","uday");
    cstmt = conn.prepareCall("{? = call PKGMORTGAGEAPP.sproc_GetRates}");
    cstmt.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.CURSOR );
    cstmt.executeUpdate();
    while (rset.next())
    str += rset.getInt(1)+" "+ rset.getInt(2)+" "
    rset.getString(3)" "+rset.getInt(4)+" "+rset.getInt(5)+" "+rset.getInt(6)+"\n";
    rset.close();
    cstmt.close();
    conn.close();
                   catch(Exception e)
                        System.out.println("Exception in connection"+e.getMessage());
    Erro message is
    Exception in connectionORA-06550: line 1, column 28:
    PLS-00306: wrong number or types of arguments in call to 'SPROC_GETRATES'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    The procedure is given below
    Create Package Body PKGMORTGAGEAPP
    AS
    PROCEDURE sproc_GetRates (rateCursor out typeRateCursor)
    IS
    BEGIN
    OPEN rateCursor FOR SELECT * FROM tblMortgageRates;
    END;
    PROCEDURE sproc_CreateApplication
    (fullName in VARCHAR,
    propertyValue in NUMBER,
    downPayment in NUMBER,
    rateID_ in NUMBER,
    isRateLocked in NUMBER,
    isPreApproved in NUMBER,
    insertResult out NUMBER
    IS
    BEGIN
    INSERT INTO tblApplications
    VALUES (fullName, propertyValue, downPayment, rateID_,
    isRateLocked, isPreApproved);
    insertResult := 1;
    EXCEPTION
    WHEN OTHERS THEN
    insertResult := 0;
    END;
    END pkgMortgageApp;          
    BIPIN.V

    Prabhu wrote:
    We are not able to connect from SQLplus as we.. If i issue this command in Sqlplus from client machine 'sqlplus admin/admin@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<Ip Adddress>)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'' it was throwing the below error.
    Error: ORA-12541: TNS:no listener
    Do i need add get any config details in the client machine..
    Could please tell me what is the general procedure to access the DB server from client machine..on DB Server issue following OS commands
    lsnrctl start
    lsnrctl status
    lsnrctl service
    COPT commands & results, then PASTE all back here

  • To see the content of a BLOB column from sqlplus

    Hi,
    I have a table which has a BLOB column.
    The blobs are text files.
    Is there a way to check the content of blob column from sqlplus itself.
    Thanks.

    There's no information about versin of database
    If you're using 11g, then refer to this link:
    http://dbathoughts.blogspot.com/2008/05/blob-support-in-sqlplus.html
    If you're using 10g, then refer to this link
    http://www.experts-exchange.com/Database/Oracle/Q_20419597.html
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Oracle connection from remote server where oracle client is installed not happening.

    Hi  ,
    I am facing problem today , that i am not able to reach oracle DB from other machine where i have installed Oracle clinet few months ago. Same was heppeing till yesterday.
    OS: Windows
    Version: 11G
    Oracle DB TNS:
    # tnsnames.ora Network Configuration File: C:\app\oracluadmin\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    DFCCDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dfccdb.dfcc.co.in)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
    Output from DB server:
    C:\Users\oracluadmin>tnsping DFCCDB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 28-JAN-2014 14:51:22
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\oracluadmin\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))) (CONNECT_DATA = (SERVER
    = DEDICATED) (SERVICE_NAME = dfccdb.dfcc.co.in)))
    OK (0 msec)
    C:\Users\oracluadmin>sqlplus SYS AS SYSDBA@DFCCDB
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Jan 28 14:56:15 2014
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    Clinet server TNS:
    DFCCDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dfccdb.dfcc.co.in)
    Output from client server:
    C:\Users\gisadmin>tnsping DFCCDB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 28-JAN
    014 15:06:18
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\gisadmin\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TC
    (HOST = 10.199.4.130)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dfccdb.df
    .co.in)))
    OK (10 msec)
    C:\Users\gisadmin>sqlplus SYS AS SYSDBA@DFCCDB
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 28 15:06:36 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    Thnaks....

    Hi,
    Refer the logs:
    <msg time='2014-02-11T10:43:10.455+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:43:10 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25229)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:10.455+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:58.706+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:43:58 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25230)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:58.722+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:44:33.120+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:44:33 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25231)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:44:33.136+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:45:24.662+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:45:24 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25280)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:45:24.662+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:48:00.819+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:48:00 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracluadmin))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
    </txt>
    </msg>
    <msg time='2014-02-11T10:48:14.547+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    txt>11-FEB-2014 10:48:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracluadmin))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * services * 0
    </txt>
    </msg>

  • STARTUP DATABASE FROM SQLPLUS

    DEAR ALL,
    I've shutdown the database from SQLPLUS.How to startup the database from sql plus.I tried to connect using sys and i recieve Listener doesn't know currently of service....
    Thanks

    I've shutdown the database from SQLPLUS.How to
    startup the database from sql plus.I tried to connect
    using sys and i recieve Listener doesn't know
    currently of service....Your errors seems that you were using sqlplus in client not in server to shudown
    database and try to startup database.
    If so, you need to config your listener.ora with static listener as well as dynamic listener.
    HTH

  • Error after Oracle Migration from DMTS into LMTS

    Hello ,
    I'm sorry, I posted my question again from ABAP General into this forum ABAP Dictionary. I think that here someone can help me in order to proceed with my job in the Development and in production system.
    We are using SAP R/3 4.6C, with SAP kernel 2271, Oracle 9.2.0.5 and HP-UX 11.23
    I did the Oracle migration from dictionary into locally managed tablespaces on the QTS system (and before that the same migration on a separate system as a copy from production):
    1. export data and index tablespace with Oracle export command (exp: for PSAPCLUD and PSAPCLUI)
    2. import into file for creation of indexes
    3. Drop the data and corresponding index tablesspace with brtools - brspace
    4. recreate the tablespaces with sapdba or with sqlplus (using the ddl scripts created before dropping the tablespaces) - - I think is my problem
    5. import the data with Oracle import command
    6. import the indexes from the previously created sql file
    7. check optimizer statistics, analyze and next extents
    But there is one problem.
    Because I have also used the sapdba and ddl sql for recreating the tablespaces, I didn't specify the SAP data class for the newly created tablespace.
    And in the tables TAORA, IAORA and DDART (what is very unclear for me) 3 rows missing for the USER1, TEMP and ??? data class.
    If you try to import some transport in the corresponding tablespace which data class is missing an error ocur.
    I have read the Note 646681 - Reorganizing tables with BRSPACE, and I saw the part: If the <reorg_tsp> tablespace contains any of the following tables: SDBAH,SDBAD,DBAML,DBATL,MLICHECK,TGORA,IGORA,TSORA,TAORA, IAORA,SVERS,DD02L,DD09L,DDNTT,DDART,DARTT or SAPLIKEY (SAPLIKEY is only available in NetWeaver 2004s or higher), then you should move them to the tablespace <aux_tsp> by online reorganization using BRSPACE:
    brspace -f tbreorg -t <table_list> -n <aux_tsp>
    Do you have the same problem?
    Do you know how I can solve the problem now after the hole migration was done?
    How can I dedicate tablespace data class?
    Is it enought to just enter the same rows into the TAORA, IAORA and DDART?
    Thanks,
    Many regards,
    Ruzica

    Apparently you are trying to mix 32-bit code and 64-bit code. You must ensure that the 32-bit or 64-bit option is used consistently on every command, compiling and linking. The form of the option can depend on the version of the C compiler you are using, and whether you are on an x86 or sparc system. Consult the Pro*C and C compiler documentation.

  • ORA00932 inconsistent datatypes For member methods in SQLJ Object called from SQLPlus

    Hi, I would very much appreciate advice on the following problem, its a tricky one, here are the full details....
    A) EXECUTIVE SUMMARY....
    I have created an oracle object type by wrapping a SQLData java object with the Oracle Create type statement. I am using Oracle 9i on NT4. However despite following the very few Oracle examples I could find, I get the following error....
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypesHere is what I've done...
    1) Create Java object using SQLData interface (see listing below)
    2) Load the Java source to Oracle 9i
    3) Run the Oracle Create Type statement to wrap the java class
    4) Use the objects in a table and successfully insert rows and query attributes using SQLPlus
    5) Find I can't pull back data from any instance methods without getting an "inconsistant datatypes" error for both string and int datatypes. (see below for queries and output from SQLPlus)
    B) STEP BY STEP DETAILS FOLLOW......
    1) Java Source (in file \dealcalcs\Dealtest.java)
    package dealcalcs;
    import java.sql.SQLException;
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleTypes;
    import java.sql.*;
    public class Dealtest implements SQLData
    public static final String SQLNAME = "SWITCHBLADE_DATA.DEALTEST";
    public static final int SQLTYPECODE = OracleTypes.STRUCT;
    protected java.math.BigDecimal m_dealid;
    protected java.sql.Timestamp m_startdate;
    protected String m_dealtype;
    protected Double m_facevalue;
    /* constructor */
    public Dealtest() { }
    public void readSQL(SQLInput stream, String type)
    throws SQLException
    setDealid(stream.readBigDecimal());
    setStartdate(stream.readTimestamp());
    setDealtype(stream.readString());
    setFacevalue(new Double(stream.readDouble()));
    if (stream.wasNull()) setFacevalue(null);
    public void writeSQL(SQLOutput stream)
    throws SQLException
    stream.writeBigDecimal(getDealid());
    stream.writeTimestamp(getStartdate());
    stream.writeString(getDealtype());
    if (getFacevalue() == null)
    stream.writeBigDecimal(null);
    else
    stream.writeDouble(getFacevalue().doubleValue());
    public String getSQLTypeName() throws SQLException
    return SQLNAME;
    /* accessor methods */
    public java.math.BigDecimal getDealid() { return m_dealid; }
    public void setDealid(java.math.BigDecimal dealid) { m_dealid = dealid; }
    public java.sql.Timestamp getStartdate() { return m_startdate; }
    public void setStartdate(java.sql.Timestamp startdate) { m_startdate = startdate; }
    public String getDealtype() { return m_dealtype; }
    public void setDealtype(String dealtype) { m_dealtype = dealtype; }
    public Double getFacevalue() { return m_facevalue; }
    public void setFacevalue(Double facevalue) { m_facevalue = facevalue; }
    //These last two are the member methods I call
    public String testme(){
    String tmp = new String("testme worked");
    return tmp;
    public int testint(){
    int tmp = 0;
    tmp = 88;
    return tmp;
    2, 3, 4) Here is how I wrap the uploaded SQLJ object, create a table using it, and put a row in it....
    create or replace type deal_t as object
         external name 'dealcalcs.Dealtest'
    LANGUAGE JAVA USING SQLData (
    DEALID NUMBER (11) external name 'dealid',
    STARTDATE DATE external name 'startdate',
    DEALTYPE VARCHAR2 (50) external name 'dealtype',
    FACEVALUE FLOAT (49) external name 'facevalue',
    MEMBER FUNCTION testme RETURN VARCHAR2
         EXTERNAL NAME 'testme() return java.lang.String',
    MEMBER FUNCTION testint RETURN NUMBER
         EXTERNAL NAME 'testint() return int'
    ) not final
    create table dealsobjtab of deal_t;
    insert into dealsobjtab values ( deal_t(1, to_date('1/jan/1968'), 'NZD/NZD', 500))
    COMMIT
    5) Here I select attributes from the object table, and select using the two member methods, note that my member methods fail miserably, and advice on fixing this would be much appreciated....
    select * from dealsobjtab aaa
    DEALID STARTDATE DEALTYPE FACEVALUE
    1 01/01/1968 NZD/NZD 500
    1 row selected
    select value(aaa).dealid from dealsobjtab aaa
    VALUE(AAA).DEALID
    1
    1 row selected
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    Phew, that was a long email, I hope you are still awake after all that. I have no idea how to solve this, and would really appreciate some advice to get me going.
    Yours Sincerely,
    Michael Cato

    But, i am receiving the error i have mentioned. is it depends on the java version also?
    Please suggest..

  • Strange problem with executing PL/SQL procedure from sqlplus.

    Hello,
    basicly, I'm strugling with executing a procedure written in PL/SQL from sqlplus.
    It's all because I convert a data in procedure by other function.
    SELECT partition_name
    INTO strpartition
    FROM user_tab_partitions
    WHERE table_name = tablename_in
    and substr(partition_name, -8, length(partition_name)) = (SELECT F_CONVERT_DATE(tablename_in,p_date) from dual);
    /tablename_in and p_date are input parameters/
    Function F_CONVERT_DATE looks more less like :
    select
    TO_CHAR(TRUNC(NEXT_DAY(ADD_MONTHS(substr(partition_name, -8, length(partition_name)), -3), 'MONDAY')-7), 'YYYYMMDD')
    END
    AS p_date
    INTO v_okr
    FROM user_tab_partitions
    where substr(partition_name, -8, length(partition_name)) = p_date;
    Well, the thing is that procedure is executable from TOAD without any errors !! But when I try to execute it straight from sqlplus it returns:
    ORA-01861: literal does not match format string
    ORA-06512: at "F_CONVERT_DATE", line 13
    ORA-06512: at "NAME_OF_PROCEDURE", line 17
    Tip: When I don't use functions ADD_MONTHS, NEXT_DAY and TO_CHAR in function F_CONVERT_DATE sqlplus can execute it. But only when I use them it returns an error.
    Anybody has a clue how to solve it?
    Regards !

    Hi, Nodex,
    Avoid implicit conversions.
    For example:
    TO_CHAR(TRUNC(NEXT_DAY(ADD_MONTHS(substr(partition_name, -8, length(partition_name)), -3), 'MONDAY')-7), 'YYYYMMDD')ADD_MONTHS expects a DATE as its first argument.
    SUBSTR returns a VARCHAR2, so you're calling ADD_MONTHS with a VARCHAR2 where it expects a DATE.
    For good or ill, the system tries to avoid raising an error in this case by implicitly converting the VARCHAR2 to a DATE. Exactly how it does that depends on
    (a) the tool you are using (SQL*Plus or Toad, for example),
    (b) the version (Oracle 10 behaved quite different form Oracle 9),
    (c) environmental settings (such as NLS_DATE_FORMAT), which in turn may depend on initialization parameneters, and
    (d) who knows what else.
    When you have to convert, do so explicitly.
    You can convert a VARCHAR2 to a DATE using TO_DATE, like this:
    TO_CHAR ( TRUNC ( NEXT_DAY ( ADD_MONTHS ( TO_DATE ( SUBSTR ( partition_name
                                                       , -8
                                          , LENGTH (partition_name)
                                     , 'YYYYMMDD'     -- or whatever
                             , -3
                      , 'MONDAY'
              - 7
         , 'YYYYMMDD'
         )

Maybe you are looking for

  • Field "Rejection For Reason" is in disble status at sales order item level

    Hi, I am trying to reject the items in a sales order by entering "Rejection Reason" at item level. But the problem is, this field is in disable status in WEB UI only for my user. However, If I use any other user, it is in enable status. Could you ple

  • No XML file for VO listed in AM, possible to extend?

    In the AM oracle.apps.ar.hz.components.account.contact.server.HzPuiActContRoleAM the VO HzPuiActRoleListVO exists however there is no XML file for this VO - what am I missing? Is it possible to extend the VO? - Resolved Edited by: user602400 on Jun 1

  • Getting the error from icp report

    i am looking to take the icp report but getting below error An error has occurred. Please contact your administrator. Show Details: Error Number:70 Error Description:Permission denied Error Source:Microsoft VBScript runtime error Page On which Error

  • X120e Cant scroll to the bottom with trackpad mid button

    Hey, i've been playing with my new x120e for a while and one thing bugs me. As i try to scroll down with the trackpad mid button, sometimes I cant get to the very bottom of the document. I can see there is a little gap at the bottom of the scroll bar

  • Report broadcast problem

    Hi, Daily we are broadcasting the reports through process chains and some reports through normal schedlues.today when I am trying to execute manually they  are not broadcasting and in SM50 I cant see any log. In sost also there is no reports availabl