sqlplus blocked indefinetly

Hi all

I am not able to connect to the instance through sqlplus, the sqlplus hangs indefinitely and found errors below in the alerts log. While I am able to start and stop the listener without any problem. The database is down from now and I can't start anyway, because it does not allow me to connect to the sqlplus.

All this happened just after a few n/w issue, where we even could not connect to the server as well, once it is solved now, we are facing this problem. Please suggest how to proceed more far away.

ORA-00604: an error has occurred at the SQL level 1 recursive

ORA-01013: user has requested the cancellation of the current operation

ORA-06512: at "SYS." STANDARD line", 264

ORA-06512: at line 2

--------------------------------------

DB Version: 9.2

OS: Sun OS 5.9

Thank you!

Jgarry and Hemant thanks for your comments.

The issue has been resolved after removing shared memory segments and semaphores used by the OS user who is the owner of the DB.

$ipcrm - is the command used to remove these components.

Tags: Database

Similar Questions

  • Why block sqlplus by operating with s?

    Hi guys,.

    When I run it with s (UNIX), it often crashes just - everyone knows that before?

    Thank you

    sqlplus-s username/password<>

    "exit";
    EXPRESSIONS OF FOLKLORE

  • If sqlplus session statement

    Hi all

    I have to get the result of a statement and continue.

    This runs a sqlplus session.

    Oracle 11g

    declare v_dname varchar (20);
    Start
    Select djob.get_dbname in the sys.dual v_dname;
    end;

    If (v_dname = "PRD") then

    run IMMEDIATELY 'truncate table MY_DAT_TBL;

    -all the summary records
    INSERT in MY_DAT_TB v
    SELECT *.
    OF ROLL_SALES_DATA;

    Commit;

    end if;

    Thank you
    Jac

    Put all your logic/code in a pl/sql block.

    SQL Plus is not a programming language.

  • email HTML of SQLPLUS

    Oracle Version: 11.2.0.4.0

    OS: SunOS

    Hello guys, I am trying to send an HTML email to outlook from sqlplus, that I wrote a script similar to the one below.

    Here's where I'm stuck. My developer comes to me and asks me that the email must come only if the sql returns data. If the SQL returns null then the enamel would not come. I don't know how to implement this requirement. I checked some blogs but not mention how to implement this requirement in this scenario.

    If my developer wants just an HTML attachment, then it would have been easier, but he wants to view this report in the body of the email itself.

    Thank you

    set echo off numf 999G999G999G999 lin 32000 trims on pages 50000 head on feed off markup html off
    alter session set nls_numeric_characters='.''' nls_date_format='Day DD. Month, YYYY';
    spool /tmp/rep.html
    prompt To: [email protected]
    prompt From: [email protected]
    prompt Subject: Daily department report
    prompt Content-type: text/html
    prompt MIME-Version: 1.0
    set markup html on entmap off table 'BORDER="2" BGCOLOR="pink"'
    prompt <i>Good morning, </i>
    prompt <i>Here is the department report per &_DATE</i>
    prompt <i>Kind Regards, </i>
    prompt <i>Your IT Operations</i>

    prompt <br/><h3>List of departments with the total salaries of their employees</h3>
    select dname "Department", sum(sal) "Salary" from emp join dept using (deptno) group by rollup(dname);
    spool off
    host /usr/sbin/sendmail -t </tmp/rep.html
    quit

    The problem is that SQL * Plus has no direct conditional construction (e.g. not if THEN ELSE order).

    There are several possible solutions, like using an anonymous plsql or make conditional coil block (as I call it).

    In your case it should wrap the host of sendmail command in some files, based on the results of the selection. Then run this file.

    + untested example +.

    Instead of ".host /usr/sbin/sendmail -t

    You would do:

    coil doSendMail.go

    Select '/usr/sbin/sendmail -t

    Ofemp join dept using (deptno)

    where rownum = 1;

    spool off

    Home doSendMail.go

    If the select does not return a line, you would get a no line found message. If the feedback is removed this message may not even make it in the hold file. Then, you must run the hold file do nothing.

  • Table external slow access of compiled PL/SQL, quick of SQLPLUS

    I'm under Oracle Standard Edition One 12.1.0.1.0 Windows x 64.  Small and simple external table queries since met PL/SQL are run very slowly with a second 18 delay, but the same sqlplus queries run very fast, both on the same instance.  I ran Profiler DBMS and debugged PL/SQL to confirm that it takes 18 seconds to query the file header record in an external table in PL/SQL, but the same exact sqlplus query runs in 0.07 seconds.

    This seems very odd.  I searched online and OTN, but I can find no example of why this would happen between the two access methods in the same instance.  Something is suspended until the execution of the external PL/SQL table compiled very hurt to be 18 seconds vs 0.07 seconds of sqlplus.  Before you buy the license Oracle I tried the table external access on trial Enterprise Edition on a laptop Windows x 64 where approaches both the PL/SQL and SQL executed just as fast (0.07 seconds in this case).  The main difference now is Standard Edition and Enterprise and production running on a Windows x 64 server.  I have no parallel enabled in the environment.

    The log file of external table displays this information message:

    KUP-05004: WARNING: disabled source Intra concurrency because select parallel is not sought.

    I think it's just because I'm not under parallel access on the external table.  The message is the same if the questioning of PL/SQL or sqlplus.

    It seems to be something coherent overall of all external PL/SQL tables in this case, because I studied 3 external tables and they all almost exactly 18 seconds later to PL/SQL vs sqlplus, even if number of rows of tables outside and requests files access to them are different.

    How can I know which slows down access PL/SQL method and correct to my production programs?  I created a test case and ran to share results:

    I create an external table of test:

    -Create table

    create the table TEMP_EXT

    (

    Field1 VARCHAR2 (10),

    VARCHAR2 (10) Field2.

    field3 VARCHAR2 (10)

    )

    external organization

    (

    type ORACLE_LOADER

    STRATESIS_DATA_DIR default directory

    access settings

    (

    RECORDS DELIMITED BY '\n '.

    BADFILE STRATESIS_LOG_DIR: 'temp.bad'

    STRATESIS_LOG_DIR LOG file: 'temp.log'

    NODISCARDFILE

    FIELDS TERMINATED BY ', '.

    SURROUNDED OF POSSIBLY "" "

    MISSING FIELD VALUES ARE NULL

    (Field1, Field2, field3)

    )

    location (STRATESIS_DATA_DIR: 'temp.txt')

    )

    reject the limit 0.

    I already have the directories above put in place in the database.

    I create a file temp.txt in the above data directory. It has two rows:

    Field1, Field2, field3

    2field1, 2field2, 2field3

    I create an autonomous PL/SQL procedure (not in a package, but I get the same result if I put it in a package):

    create or replace procedure tryplsql is

    l_field1 temp_ext.field1%TYPE;

    l_field2 temp_ext.field2%TYPE;

    l_field3 temp_ext.field3%TYPE;

    BEGIN

    SELECT field1, Field2, field3

    IN l_field1, l_field2, l_field3

    OF temp_ext

    WHERE field1 = "field1";

    Dbms_output.put_line(l_field1 ||) ',' || l_field2 | ',' || l_field3);

    end tryplsql;

    I run as a sqlplus pl/sql procedure:

    SQL > exec tryplsql

    Field1, Field2, field3

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:17.68

    SQL > spool off;

    It takes almost 18 seconds?

    I performed the simple query of sqlplus and it's quick:

    SQL > select Field1, Field2, field3 from temp_ext where field1 = "field1";

    FIELD1 FIELD2 FIELD3

    ---------- ---------- ----------

    Field1 Field2 field3

    Elapsed time: 00:00:00.01

    SQL > spool off;

    Very fast 0.01 second.

    I run the following block of sqlplus:

    SQL > DECLARE

    l_field1 2 temp_ext.field1%TYPE;

    3 l_field2 temp_ext.field2%TYPE;

    4 l_field3 temp_ext.field3%TYPE;

    5

    6 BEGIN

    7 SELECT field1, Field2, field3

    8 l_field1, l_field2, l_field3

    9 FROM temp_ext

    10. WHERE field1 = "field1";

    11

    12 DBMS_OUTPUT.put_line(l_field1 ||) ',' || l_field2 | ',' || l_field3);

    13

    14 END;

    15.

    Field1, Field2, field3

    PL/SQL procedure successfully completed

    Elapsed time: 00:00:00.01

    SQL > spool off

    It is also very fast.  In SQL, and even a PL/SQL block sqlplus are fast, but a procedure have complied is slow?

    I have a lot of packages, procedures, functions, etc., running very fast in the DB as long as there are no external table access (no time 18 seconds).  I ran DBMS Profiler on several sections of code - in all cases, that the call to the external tables takes 18 seconds.  I tried to debug PL/SQL and again the request to the external tables takes 18 seconds every time.

    Probably something obvious I'm missing, but I am confused.  Any help is appreciated.

    Support of Oracle has identified the issue as a known bug in 12.1.0.1.   Bug #18824125

    The workaround until patched is drop the PL/SQL as sys (not a good option), or to grant any directory of the user who executes the PL/SQL will be launched.  It worked.

  • pass the parameter in pl/sql block

    Hello

    I have to call anonymous pl/block block with the shell script parameter. It works fine as indicated below, the problem is - generated email after the creation of the table in step contains
    list of all directories and files, instead of "select * from". When I change * to the values of columns, everything works well, but I need to use ' * ' in select statement.
    Please let me know which remedy.
    set serveroutput on
    @${CREATE_STAGE_SQL} ${i}
    COMMIT;
    QUIT;
    EOF
    CREATE_STAGE_SQL. SQL
    declare
    begin
    ### some other processing###
     execute immediate 'create table T1_&1._STG as select * from t1_rpt_tmt where 1=2';
    end 
     
    Thank you
    Sandy

    Sandy310 wrote:

    Question - how to select * on my application, how to use * (special character) bulk pl/sql call?
    I used & 1. (dot) to pass parameter.

    Example:

    // the script
    /home/billy/sql> cat show-employees.sql
    --// usage: show-employees.sql 
    --//
    --// where:     sql-projection = comma delimited column list
    
    set verify off
    set define on
    define PROJECTION=&1
    
    select &PROJECTION from emp order by 1;
    
    exit
    
    // running script for single column
    /home/billy/sql> sqlplus scott/tiger @show-employees.sql ename
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 18 08:01:10 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
    ENAME
    ----------
    ADAMS
    ALLEN
    BLAKE
    CLARK
    FORD
    JAMES
    JONES
    KING
    MARTIN
    MILLER
    SCOTT
    SMITH
    TURNER
    WARD
    
    14 rows selected.
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
    // running script for all columns using asterisk - and to prevent bash from processing
    // the asterisk as a file/dir listing parameter, we escape the character using a slash
    /home/billy/sql> sqlplus scott/tiger @show-employees.sql \*
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 18 08:01:17 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 1981/02/20 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 1981/02/22 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 1981/04/02 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 1981/09/28 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 1981/05/01 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 1981/06/09 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 1987/04/19 00:00:00       3000                    20
          7839 KING       PRESIDENT            1981/11/17 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 1981/09/08 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 1987/05/23 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 1981/12/03 00:00:00        950                    30
          7902 FORD       ANALYST         7566 1981/12/03 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 1982/01/23 00:00:00       1300                    10
    
    14 rows selected.
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
  • pl sql block does nothing

    I have a pl/sql block and it does nothing why?

    The code is as follows:

    DECLARE @day varchar (10)

    BEGIN


    Set @day =' select to_char ('sysdate', 'DAY') of double;

    IMPRESSION @day

    END;

    Any ideas would be very appreciated.

    Thank you!

    The minimum code required to do this is:

    set serveroutput on
    SQL> set serveroutput on
    SQL>  begin
      2     dbms_output.put_line ( to_char ( sysdate, 'DAY' ) );
      3     end;
      4   /
    FRIDAY
    
    PL/SQL procedure successfully completed.
    

    If you do not use a variable instead, you do not need to make a selection in this case, standard SQL features available in PL/SQL
    Note that:
    (i) ' set serveroutput we ' must be defined once per session.
    (II) semicolon ";" at the end of each statement, and
    (III) "/" tells SQLPlus "I'm done, please compile and run.

    SQL> declare d varchar2(10);
      2  begin
      3  d := to_char ( sysdate, 'DAY' );
      4  dbms_output.put_line ( d );
      5  end;
      6  /
    FRIDAY
    
    PL/SQL procedure successfully completed.
    

    You have already shown a version using the ' select... in... from double '-that was the only way to do this in earlier versions, and of course, is how to get real data from real tables.

    T/SQL and PL/SQL are very different... you have been pointed out the docs, go read and keep reading and reading, reading and...

  • How to check the performance of query via the command sqlplus prompt

    Hello

    I work in the production environment, I want to check the performance of the queries in a production environment, we have no specific tools such as the expliin plan, TK Proff.

    I need chek performnce of sqlplus command line query

    Please let me know the process of query tuning of sqlplus command promt

    Here to explain plan:

    SQL> explain plan for
      2  select * from employees where employee_id = 170;
    
    Explained.
    
    SQL> select * from table(dbms_xplan.display());
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------
    Plan hash value: 1833546154
    
    ---------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT            |               |     1 |    69 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMPLOYEES     |     1 |    69 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | EMP_EMP_ID_PK |     1 |       |     0   (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access("EMPLOYEE_ID"=170)
    

    You can also use autotrace, which is super easy:

    SQL> set autotrace on
    SQL> select * from emp;
    
                   EMPNO ENAME      JOB                        MGR HIREDATE
    -------------------- ---------- --------- -------------------- --------------------
                    7369 SMITH      CLERK                     7902 17-DEC-1980 00:00:00
                    7499 ALLEN      SALESMAN                  7698 20-FEB-1981 00:00:00
                    7521 WARD       SALESMAN                  7698 22-FEB-1981 00:00:00
                    7566 JONES      MANAGER                   7839 02-APR-1981 00:00:00
                    7654 MARTIN     SALESMAN                  7698 28-SEP-1981 00:00:00
                    7698 BLAKE      MANAGER                   7839 01-MAY-1981 00:00:00
                    7782 CLARK      MANAGER                   7839 09-JUN-1981 00:00:00
                    7788 SCOTT      ANALYST                   7566 19-APR-1987 00:00:00
                    7839 KING       PRESIDENT                      17-NOV-1981 00:00:00
                    7844 TURNER     SALESMAN                  7698 08-SEP-1981 00:00:00
                    7876 ADAMS      CLERK                     7788 23-MAY-1987 00:00:00
                    7900 JAMES      CLERK                     7698 03-DEC-1981 00:00:00
                    7902 FORD       ANALYST                   7566 03-DEC-1981 00:00:00
                    7934 MILLER     CLERK                     7782 23-JAN-1982 00:00:00
    
    14 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3956160932
    
    --------------------------------------------------------------------------
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |      |    14 |   532 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| EMP  |    14 |   532 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    Statistics
    ----------------------------------------------------------
            480  recursive calls
              0  db block gets
             92  consistent gets
              9  physical reads
              0  redo size
           1630  bytes sent via SQL*Net to client
            520  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              7  sorts (memory)
              0  sorts (disk)
             14  rows processed
    

    This guide has lots of good info:
    http://docs.Oracle.com/CD/B19306_01/server.102/b14211/TOC.htm

  • sqlplus - autotrace

    Hello
    I need to insert into the table Oracle execution plan as well as statistics of the statements with autotrace to sqlplus session.

    for example:
    SQL> set autotrace on;
    SQL> select count(*)
      2  from dual;
    
    count(*)                                                                     
    ----------                                                                      
           1                                                                      
    
    
    Exrcution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1388734953                                                     
                                                                                    
    -----------------------------------------------------------------               
    | Id  | Operation        | Name | Rows  | Cost (%CPU)| Time     |               
    -----------------------------------------------------------------               
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)| 00:00:01 |               
    |   1 |  FAST DUAL       |      |     1 |     2   (0)| 00:00:01 |               
    -----------------------------------------------------------------               
    
    
    Statistics
    ----------------------------------------------------------                      
              1  recursive calls                                                    
              0  db block gets                                                      
              0  consistent gets                                                    
              0  physical reads                                                     
              0  redo size                                                          
            425  bytes sent via SQL*Net to client                                   
            416  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed 
    Can I insert this output in an Oracle table?
    I need to draw the many statements for the current session and store it in a table.

    Thanks in advance!

    RAF Royal wrote:
    I need to find the following values for the session of sqlplus set autotrace on;

    ID
    OPERATION
    NAME
    LINES
    COST (% CPU)
    TIME
    STATISTICS

    I would like to create a table with these columns and insert these values or I would find a system table that gives me the data.

    question one or more of the views below

    07:43:37 SQL > select dba_views view_name where view_name like ' % PLAN % ';

    VIEW_NAME
    ------------------------------
    V_$ ADVISOR_CURRENT_SQLPLAN
    V_$ RSRC_PLAN
    V_$ RSRC_PLAN_CPU_MTH
    V_$ RSRC_PLAN_HISTORY
    DBA_ADVISOR_SQLPLANS
    V_$ SQLAREA_PLAN_HASH
    V_$ SQLSTATS_PLAN_HASH
    V_$ SQL_PLAN
    V_$ SQL_PLAN_MONITOR
    V_$ SQL_PLAN_STATISTICS
    V_$ SQL_PLAN_STATISTICS_ALL

    VIEW_NAME
    ------------------------------
    GV_$ RSRC_PLAN
    GV_$ RSRC_PLAN_CPU_MTH
    GV_$ RSRC_PLAN_HISTORY
    GV_$ SQLAREA_PLAN_HASH
    GV_$ SQLSTATS_PLAN_HASH
    USER_ADVISOR_SQLPLANS
    USER_SQLSET_PLANS
    USER_SQLTUNE_PLANS
    USER_SQLTUNE_RATIONALE_PLAN
    DBA_HIST_PLAN_OPERATION_NAME
    DBA_HIST_PLAN_OPTION_NAME

    VIEW_NAME
    ------------------------------
    DBA_HIST_RSRC_PLAN
    DBA_HIST_SQL_PLAN
    DBA_RSRC_PLANS
    DBA_RSRC_PLAN_DIRECTIVES
    DBA_SQLSET_PLANS
    DBA_SQLTUNE_PLANS
    DBA_SQLTUNE_RATIONALE_PLAN
    DBA_SQL_PLAN_BASELINES
    KU$ _RMGR_PLAN_DIRECT_VIEW
    KU$ _RMGR_PLAN_VIEW
    ALL_SQLSET_PLANS

    VIEW_NAME
    ------------------------------
    GV_$ SQL_PLAN
    GV_$ SQL_PLAN_MONITOR
    GV_$ SQL_PLAN_STATISTICS
    GV_$ SQL_PLAN_STATISTICS_ALL
    ALL_EXPFIL_PREDTAB_PLAN
    USER_EXPFIL_PREDTAB_PLAN
    ALL THE$ AW_CUBE_AGG_PLANS
    MGMT_JOB$ EXECPLAN
    GV_$ ADVISOR_CURRENT_SQLPLAN

    42 selected lines.

    07:44:06 SQL >

  • Connect with sqlplus for fee install R12 Vision ORA-12154

    Summary:

    Try to connect with sqlplus R12 vision new installation gives me ORA-12154.

    Context:

    Installed R12 12.1.1 instance Vision on Oracle Enterprise Linux 5.4 x 86-64 (SElinux disabled / without virtualization). Follow-up [761566.1] and http://www.oraclenerd.com/2009/12/ebs-install-guide-part-1.html. I also followed instructions of [761566.1] on the files to the best of my ability to network. Blocked as closely as possible to these two documents and also stuck by default as much as possible. Everything is fine with all the levels on the same machine (A). Start and stop OK.

    Detailed description:
    Now try to connect using sqlplus (latest version) on the same machine with the following:
    ======================================================================
    [u01 root@vizz] #./ebs/R12VIS/db/tech_st/11.1.0/bin/sqlplus sys/change_on_install@VIS as sysdba

    SQL * more: version 11.1.0.7.0 - Wed 27 Jun 23:36:07 Production 2012

    Copyright (c) 1982, 2008, Oracle. All rights reserved.

    ERROR:
    ORA-12154: TNS: could not resolve the connect identifier specified
    ======================================================================
    Also tried with oravis and applvis, the two accounts, the case with identical results management
    The ORA-12154 notoriously generic...

    All the tnsnames.ora I can find give me LIVE that the SID:
    ./ebs/R12VIS/inst/apps/VIS_vizz/admin/out/06260806/tnsnames.ora
    ./ebs/R12VIS/inst/apps/VIS_vizz/ora/10.1.2/network/admin/tnsnames.ora
    ./ebs/R12VIS/inst/apps/VIS_vizz/ora/10.1.3/network/admin/tnsnames.ora
    ./ebs/R12VIS/apps/tech_st/10.1.2/inventory/Templates/network/admin/tnsnames.ora
    ./ebs/R12VIS/apps/tech_st/10.1.2/network/admin/samples/tnsnames.ora
    ./ebs/R12VIS/apps/tech_st/10.1.2/network/admin/tnsnames.ora
    ./ebs/R12VIS/apps/tech_st/10.1.3/network/admin/samples/tnsnames.ora
    ./ebs/R12VIS/apps/apps_st/appl/ad/12.0.0/admin/template/tnsnames.ora
    ./ebs/R12VIS/db/tech_st/11.1.0/owb/network/admin/tnsnames.ora
    ./ebs/R12VIS/db/tech_st/11.1.0/network/admin/VIS_vizz/tnsnames.ora
    ./ebs/R12VIS/db/tech_st/11.1.0/network/admin/samples/tnsnames.ora

    As well as those generated scripts (for example, addbctl.sh) to start and stop the instance.

    What I'm missing here?

    Published by: rjvencken on June 27, 2012 12:47

    Published by: rjvencken on June 27, 2012 12:47

    Published by: rjvencken on June 27, 2012 12:54

    In the output above, it looks like you source the env file and that's why you get the error ORA-12154. You have to get the file of database of EPS under directory $ORACLE_HOME (.env file).

    Thank you
    Hussein

  • Listener shows blocked connections

    Hello

    I am working on AIX 6.1 with Oracle 11 g R2 (11.2.0.2.0). I am trying to connect databases to another server. I moved the password file and renamed it as well. But when I try to connect the source to the target server server it gives «Connected to the ideal forum»

    Review on the target database server, the listener is showing blocked connections

    LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production on 7 February 2012 08:31:06+.

    ++ Copyright (c) 1991, 2010, Oracle. All rights reserved. ++

    ++ Welcome to LSNRCTL, enter 'help' for more information. ++

    ++ LSNRCTL > status ++
    ++ To connect to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=drctest.testtst.com) (PORT = 1521))) ++
    ++ The LISTENER STATUS ++
    ++------------------------++
    ++ LISTENER alias ++
    ++ Version TNSLSNR for IBM/AIX RISC System/6000: 11.2.0.2.0 - Production Version ++
    ++ Start Date 7 February 2012 08:25:21 +
    ++ Uptime 0 days 0 h 5 min 47 sec ++
    ++ Stop trace level ++
    ++ SAFETY: local authentication OS ++
    ++ WE SNMP ++
    ++ File parameter listener /u01/app/oracle/product/11.2.0.2.0/dbhome_1/network/admin/listener.ora++
    ++ Listener log file /u01/app/oracle/diag/tnslsnr/TESTTST/listener/alert/log.xml++
    ++ Summary of endpoints listening... ++
    ++ (Description = (Address = (Protocol = TCP)(Host=DRCTEST.testtst.com) (port = 1521))) ++
    ++ (Description = (Address = (Protocol = IPC) (Key = EXTPROC1521))) ++
    ++ Services summary... ++
    ++ Service 'drctest' / your 1 instances. ++
    ++ The instance 'drctest', LOCKED status, has 1 operation for this service... ++
    ++ Service 'drctest.testtst.com' / your 1 instances. ++
    ++ The instance 'drctest', status UNKNOWN, has 1 operation for this service... ++
    ++ The command completed successfully ++

    Please all possible suggestions and advice. Thank you very much.

    Make sure that ORACLE_HOME and ORACLE_SID you can connect locally to instantiate with:

    sqlplus / as sysdba
    

    Do not enter: "idle instance."

    Once this is done, if you need to change ORACLE_HOME (maybe end remove "/"), restart the listener.

    Edited by: P. Forstmann on 7 Feb. 2012 20:22

  • Anonymous block PLSQL

    I have run below Block anonymous PLSQL in isqlplus in enterprise edition 10g... after the creating user, table, insert data in there etc...


    declare
    number of v_id: = 1;
    v_first_name varchar2 (30);
    v_last_name varchar2 (30);
    Start
    Select first_number, last_number in v_first_name, v_last_name
    the student
    where id = v_id;
    dbms_output.put_line (' first name is ' | v_first_name |) "The name is ' | v_last_name);
    exception
    When no_data_found then
    dbms_output.put_line (' there is no footage of student ' | v_id);
    end;

    I get this message...
    PL/SQL procedure successfully completed.

    But the data I expect, I put the student table does not appear...

    What is the problem...

    don't know if it works in isqlplus (... does really exist?)

    in sqlplus, you run this statement to see dbms_output

    set serveroutput on
    
  • Pass the Shell script variable to the plsql block

    Hello
    I have a shell script and pass the parameter of Shell script in a PLSQL block, I use the code but impossible to get any result, below
    Can someone help me with this issue?

    Shell script: test.sh


    * #! / bin/sh *.

    var1 = $1

    SQLPLUS = 'sqlplus-s ".
    Login = "gmisowner/gmisowner1".

    day ='$SQLPLUS $LOGON < < ++
    set the position
    Set feedback off

    Start
    select count () from mis_ref_codes where ref_description = & var1; *

    end;

    "exit";
    ++`

    echo $day

    Execution at the command prompt: >./test.sh Underline
    returns nothing

    1. I was hoping the count (*) in the number of lines in him select statement is stored in the day, but nothing returned as output of the plsql block
    the select statement above is an example, but I'll have to run a much larger plsql block

    I have syntactically doing something wrong? Please suggest

    Published by: Camilla January 14, 2012 12:35

    First of all you needget get rid of anonymous PL/SQL block:

    var1=$1
    
    SQLPLUS="sqlplus -s"
    LOGON="gmisowner/gmisowner1"
    
    day=`$SQLPLUS $LOGON <<++
    set heading off
    set feedback off
    select count(*) from mis_ref_codes where ref_description=&var1;
    exit;
    ++`
    echo $day
    

    But it still does not work. Your SQL * more script a proxy & var1. It has nothing to do with shel environment variable var1. That is why SQL * PLus prompts you to enter the value just after she readings

    Select count (*) in the mis_ref_codes where ref_description = &var1;

    And since you redirected input to your script, you must put value of var1, which isn't what you want, right? So what you need is:

    dev > # I'll set $1 to X
    dev > set X
    dev > var1 = $1
    dev > SQLPLUS = 'sqlplus-s ".
    dev > login = ' / '.
    dev > ='$SQLPLUS $LOGON < < EOF
    > set position
    > leave your comments
    > set verify off
    > select ' Have a nice day! "twice where dummy ="$var1 ";
    > "exit";
    > EOF'
    dev > echo $day
    Good day!
    dev >

    SY.

    Published by: Solomon Yakobson on 13 January 2012 15:17

  • PL/SQL block in unix script

    The block of problem:
    ***************************************************
    sqlplus-s ${db_login} < < EOF > > ${log_file} 2 > & 1
    Set serveroutput on
    Set of feedback on
    declare
    ERRCODE varchar2 (200);
    ErrMsg varchar2 (200);
    retcur sys_refcursor: = null;
    src_sys varchar2 (20): = null;
    proc varchar2 (200);
    Start
    ora_var: = ' ${unix_var} ";
    If ora_var = 'A' or 'C' = ora_var then
    some_pkg.some_proc_$ {unix_var}(Errcode,errmsg,retcur);
    on the other
    some_pkg.some_proc_$ {unix_var}(Errcode,errmsg,retcur,'${another_unix_var});
    end if;
    end;

    ************************************************
    some_pkg-> lets say a package in oracle
    some_proc_-> lets say a procedure in the above mentioned package where the '' can be 'A' or 'B' or'C.

    Take the varaiable as parameters in calls to shell script.

    Statement of the problem: Whenever I have call the script 'A' or 'B' if part gets called and even when I pass 'C', and then also the if part is called. How to solve this problem?
    HELP PLZ

    Published by: Jaguar on December 13, 2011 04:35

    It should be failed with 'A' as well. The reason is
    ora_var: = ' ${unix_var} ";
    The single quotation mark is hiding the $ from Unix and if ora_var is the real sting ' ${unix_var} "instead of the value of unix_var. I think that put a------should fix before the two single quotes:
    ora_var: = \'${unix_var}\';

  • How to enable tracking changes with pfile block

    Hello

    I want to use enable followed the change block (for fast incremental backup RMAN). kindly advice how can I use this setting using pfile.


    Thank you
    Krishna

    Has nothing to do with the pfile. Just issue the sqlplus command:

    alter database enable block change tracking;
    

Maybe you are looking for