Sqlplus and asmcmd

Ello
What are the default connect strings used by sqlplus and asmcmd when connecting to asm instance ?
Is it "/ as sysasm" for asmcmd and operating system authentication for sqlplus
or
operating system authentication for asmcmd and none for sqlplus ?
or
both operating system authentication ?

Ora_83 wrote:
Ello
What are the default connect strings used by sqlplus and asmcmd when connecting to asm instance ?
Is it "/ as sysasm" for asmcmd and operating system authentication for sqlplus
or
operating system authentication for asmcmd and none for sqlplus ?
or
both operating system authentication ?I am not sure that I understand you properly. The default or what needs very little configuration, is the o/s authentication.
Aman....

Similar Messages

  • ORA-12535 TNS:operation timed out from SQLPlus and Enterprise Manager Conso

    I keep getting a ORA-12535 TNS:operation timed out error, when I try to start my Database.
    I know its a timeout error, but I would like to know what is timing out and why. All I want is the database its self to run to allow me to connect to it via SQLPlus and JDBC.
    Is there any information on what the following services do and which ones I need to have running to use the database.
    Oracle OLAP 9.0.101
    Oracle OLAP Agent
    Oracle oraHome90Agent
    Oracle oraHome90ClientCache
    Oracle OraHome90PagingServer
    OracleOra90SNMPPeerEncapsulator
    OracleOra90SNMPPeerMasterAgent
    OracleOra90STNSListener
    Thanks for any help Tony

    Either reconfigure CONNECT_TIMEOUT to be 0, which means wait indefinitely, or reconfigure CONNECT_TIMEOUT to be some higher value. Or, if the timeout is unacceptably long, turn on tracing for further information.
    If you have oracle metalink, then read the following note;
    Note:119706.1 - Troubleshooting Guide TNS-12535 & ORA-12535 Errors

  • Sqlplus and "show parameter"

    hi,
    I cloned two databases from a database (copying filesystem, modifying parameter file, and recreating control file).
    on one of the cloned databases when I log in as a user using sqlplus and do show parameter db_name, it shows the parameter.
    on the other one, it says "table or view does not exist".
    why is this? they were both cloned from the same database!
    thanks

    but if I have database A, and I clone that into databases X and Y, and during the whole duration A was not modified so that A, X and Y end up being completely identical, then surely one would expect user ora12 on all three databases to have the same privileges? Why then can I use show parameter on databases A and X, but not Y?
    thanks

  • Sqlplus and dbconsole  dont' show the correct version

    Hi,
    I have succesfully applied the patch 9654983 (11.2.0.1.2 Patch set update) .
    But , I don't understand why sqlplus and the dbconsole still show me the 11.2.0.1.0 version.
    Did I miss a step ? pfile or spfile ?
    note the the registry$history table showo the 12.2.0.1 version and "PSU 12.2.0.1.2 " as comment.
    Thanks be advance,
    Daniel Tasseroul

    This is normal. PSU patches do not update the database version that is displayed. See MOS Doc 861152.1 (Do Patchset Updates (PSU's) Change the Oracle Release Version/Fifth Digit?)
    As long as you can confirm from the logs that the patch applied successfully without errors, you are good.
    HTH
    Srini

  • SQLPlus and SQLLoader needed for Sparc Solaris 2.6

    Hello,
    for a test i need the two Oracle utilities SQLPlus and SQLLoader
    for Sparc Solaris 2.6.
    Is there a test version available ???
    Thanks for information.
    Olaf.
    null

    hai Alan,
    Let me specific on the problem.
    I developed a fail-over software for Linux servers(need 2 servers of same configuration). In this servers ,there are two modes , Active and passive mode. At a time one can be active,and other passive. Clients can communicate the with the servers through a common alias ip address. But the actual ip address of servers can be different.Normally Active server would be having the alias ip.
    When switching take place from active to passive mode,server will be assigned with its actual ip address. When switching takes place other passive server becomes active and its get common alias ip address.?
    This is the actual scenario . And fake is used in Linux to refresh the arp table of immediate switching device.
    But i came to know that solaris os would do it normally when it switches .?
    Is this possible with solaris.?

  • Why can't you let us download SQLplus and Net8 by itself

    Please use this forum to provide feedback about OTN content/services. All other posts will be DELETED.
    I want to be able to download Sqlplus and Net8 without downloading something else. I know it is packaged with other development tools. It would be helpful for those don't want to use Oracle's developemnt tools but just want to connect to Oracle database using sqlplus.

    The Oracle Client in the most compact way to get SQL*Plus and Oracle Net, although this is still quite large. SQL*Plus has a lot of dependencies on RDBMS libraries, and the Oracle Client is the best way for you to get just what you need.
    As the previous poster suggested, iSQL*Plus might be a better option, and this is included with the Server download, ie, Enterprise Edition, Standard Edition and Personal Edition.
    Alison
    Product Manager, SQL*Plus

  • Download Oracle client, instant client, sqlplus and isql for Unix sco6

    Can you please let me know where can I download 10g R2 Oracle client, instant client, sqlplus and isql for Unix sco6. Also if you can let me know if this all above is compatible with unix sco6.

    Hi,
    Check the link below.
    /R
    http://www.oracle.com/technology/software/index.html

  • Need Help with logins for SQLPLUS and Database Control

    Hi,
    I am new to Oracle. I installed "Oracle 10g Standard Version" on Win XP Pro. I have two questions regarding logins:
    (1)     After installing the software I used “dbca” to create a General Purpose database. At the end of the database creation I clicked on the Password Management button and I entered the password for SYS, SYSTEM and SCOTT. Then at the DOS command prompt I typed “SQLPLUS” and I can login as SCOTT and system, but I cannot as login as sysdba or sysoper. I get invalid username/password; logon denied message.
    But I can type “SQLPLUS /NOLOG” and then issue command “connect /as sysdba” and connect successfully as sysdba. Any idea why I cannot login sysdba or sysoper?
    (2)     When I go to windows Start->All Programs->Oracle - OraDb10g_home1 and select “Database Control”. A browser windows open up Database Control page. I cannot start Listener nor Start up a Database Instance. No matter whether I try SYS, SYSDBA, SYSOPER or SCOTT I cannot login. Any idea what is going on here?
    At the SQLPLUS command prompt if I enter “select status from v$instance;” I get status as “OPEN”.
    I am lost in Oracle world as a typical newbie. Many thanks in advance for any advice or pointers.
    Thanks
    Joe

    (1) Yes I can login if I type "sqlplus / as sysdba". Does that mean "sysdba" doesn't have a password?
    (2) when I run "emctl status dbconsole", I get a message saying "Environment variable ORACLE_SID not defined. Please define it." Can someone tell me what should I do?
    Thanks
    Joe

  • Can i change sqlplus and rman executible files rights in Oracle_home/bin

    can i change sqlplus and rman executible files rights in Oracle_home/bin for security reasons, like following
    chmod 750 sqlplus
    chmod 750 rman
    what will be the side effects of this

    Note: My advise in based on Oracle Recomended files permissions ratherr the mentioned 750 file permission
    To answer your question, I use examples like ensuring that oracle software owner (and related oinstall group) have discretory access to datafiles, controlfiles, redologs, hence using 640. Also that files like $ORACLE_HOME/bin/oracle (and related DBA group) are run by the software owner regardless of who executes it, hence using 6751. And others like trace files which contain sensitive hex dumps that you do not want others to see, hence using 640
    So by "various processes and access permissions", I meant relateding to batch and users.

  • Getting sqlplus and odbc connection to work

    I'm looking to automate some data extraction activities either through a windows batch file or set up a data connection in an excel spreadsheet. I've installed (I think) the instant client, but, I'm not seeing any programs to run in my start>All Programs list except Microsoft ODBC Administrator and sqlplus does not work when typed at the command prompt (sqlplusw neither).
    Not sure what I should do next...thanks for looking and your help.
    I currently use sql server and access and have set odbc connections and connections to sql server in excel.
    Here's what the inventory shows:
    Inventory contents of (my-computer):
    Oracle Homes
    OraClient10g_home1
    Oracle Client 10.2.0.1.0
    Oracle Instant Client 10.2.0.1.0
    Oracle ODBC Driverfor Instant Client 10.2.0.1.0
    Oracle JDBC/OCI Instant Client 10.2.0.1.0
    SSL Required Support Files for InstantClient 10.2.0.1.0
    RDBMS Required Support Files for Instant Client 10.2.0.1.0
    SQL*Plus Files for Instant Client 10.2.0.1.0
    HOME SELECTION
    Central Inventory Location: "C:\Program Files\Oracle\Inventory"
    Oracle Home Status
    OraClient10g_home1 Selected
    PATH = D:\oracle\product\10.2.0\client_1\bin;D:\oracle\product\10.2.0\client_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    etc, etc, etc
    --------------------------------------------------------------------------------

    thanks
    sqlplus working, had the wrong path, but, not connecting. I did save a copy of the tnsnames.ora from another machine. Here's what it shows, below, I think I need to use the LDAP adapter, but, not sure how to make it use that, sqlnet.ora is:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT)
    ----command line results------
    C:\>tnsping POST_DBSR.xxx.ourcompany.COM
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-SEP-2
    010 07:33:32
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    D:\oracle\product\10.2.0\client_2\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.1.xxx)(PORT = 1521))) (CONNECT_DATA = (SID = post)))
    TNS-12535: TNS:operation timed out

  • Exit with bind variable from sqlplus and then echo $?

    Hello world.
    I don't know why they are different between :v_num and the value of "echo $?"
    thanks.
    SANOWT:oratest:/data3/oratest/oratest/hgjung> cat t.sql
    select count(*) from all_objects;
    variable v_num number;
    begin
    select count(*) into :v_num from all_objects ;
    exception
    when no_data_found then
    :v_num := 1403;
    end;
    exit *:v_num*
    SANOWT:oratest:/data3/oratest/oratest/hgjung> \sqlplus scott/***** @t
    SQL*Plus: Release 10.2.0.3.0 - Production on Wed Feb 17 10:11:59 2010
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    COUNT(*)
    *50497*
    PL/SQL procedure successfully completed.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SANOWT:oratest:/data3/oratest/oratest/hgjung> echo $?
    *65*
    SANOWT:oratest:/data3/oratest/oratest/hgjung>

    The $? variable in UNIX is the exit code for the program. In most *NIX versions that I am aware of, it is limited to values between 0 and 255 (i.e. one byte), so the value is truncated.  The hex value of 50497 is C541, or two bytes, so the $? variable is only getting the last byte 0X41 which is decimal 65.
    John

  • How to list the current user in sqlplus and how to switch to another?

    Assume I am in a sqlplus sesion.
    How can I display the user with whom I am currently working?
    And how can I switch (without leaving the sqlplus session) to another
    user aaa with pw=mypw?
    Peter

    By using host command
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> host su oracle
    Password:
    [oracle@backup root]$ exit
    exit
    SQL>From Documentation:
    *HOST [ command ] - Execute host commands*
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14195/sqlqraa.htm#sthref1972
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • SQLPlus AND bring in Scripts with "&"

    hi,
    i habe following problem:
    in my database does many procedures and functions exist.
    i habe a script that start a lot of other scripts which create or replace functions after modifications.
    is in a script the character "&" the sqlplus prompt wait for an input!
    how can i avoid this effect?
    thanx
    armin

    The "&" character is the defualt to accept user input. That's why you have the sqlplus prompt.
    To avoid this, in your script , as the first line have
    SET DEFINE ^
    assuming you are not using the "^" symbol in your any script
    hi,
    i habe following problem:
    in my database does many procedures and functions exist.
    i habe a script that start a lot of other scripts which create or replace functions after modifications.
    is in a script the character "&" the sqlplus prompt wait for an input!
    how can i avoid this effect?
    thanx
    armin

  • Query Fast In SQLPlus and Toad but Slow Otherwise

    Environment is Oracle 10g on AIX with 10g drivers on Windows XP as the client. Several queries run in less than 9 seconds in Toad and SQLPlus but take hours or never return in Business Objects Deski, MS Access, and SQL Server SSIS. The exact same SQL produces completely different explain plans based on if it is run from Toad/SQLPlus vs the other products I mentioned. All the software is on the same XP machine and does not use middleware. 99 percent of our queries will run fast or slow in all products. What is it that Toad and/or SQLPlus does to run the queries fast? Why does Oracle change explain plans based on what application connects to it? The goal is to run Business Objects reports from Oracle. Any help or direction for further troubleshooting would be appreciated. Thank-you.

    Charles, on the XP machine I selected the Admin option when installing the client. The software should be 10g R2. Below is the information requested. If you need more please let me know. Also, I am asking our DBA to check the bitmap issue.
    I appreciate the help. Thank-you for taking your time...
    BAD Settings
    SQL_ID                CN NAME                                     VALUE                     DEF
    64yzv2570s56x          0 _pga_max_size                            209700 KB                 NO
    64yzv2570s56x          0 active_instance_count                    1                         YES
    64yzv2570s56x          0 bitmap_merge_area_size                   1048576                   YES
    64yzv2570s56x          0 cpu_count                                4                         YES
    64yzv2570s56x          0 cursor_sharing                           similar                   NO
    64yzv2570s56x          0 hash_area_size                           131072                    YES
    64yzv2570s56x          0 optimizer_dynamic_samplin                2                         YES
    64yzv2570s56x          0 optimizer_features_enable                10.2.0.4                  YES
    64yzv2570s56x          0 optimizer_index_caching                  0                         YES
    64yzv2570s56x          0 optimizer_index_cost_adj                 100                       YES
    64yzv2570s56x          0 optimizer_mode                           choose                    NO
    64yzv2570s56x          0 optimizer_secure_view_mer                true                      YES
    64yzv2570s56x          0 parallel_ddl_mode                        enabled                   YES
    64yzv2570s56x          0 parallel_dml_mode                        disabled                  YES
    64yzv2570s56x          0 parallel_execution_enable                true                      YES
    64yzv2570s56x          0 parallel_query_mode                      enabled                   YES
    64yzv2570s56x          0 parallel_threads_per_cpu                 2                         YES
    64yzv2570s56x          0 pga_aggregate_target                     1048576 KB                YES
    64yzv2570s56x          0 query_rewrite_enabled                    true                      YES
    64yzv2570s56x          0 query_rewrite_integrity                  trusted                   NO
    64yzv2570s56x          0 skip_unusable_indexes                    true                      YES
    64yzv2570s56x          0 sort_area_retained_size                  0                         YES
    64yzv2570s56x          0 sort_area_size                           65536                     YES
    64yzv2570s56x          0 star_transformation_enabl                temp_disable              NO
    64yzv2570s56x          0 statistics_level                         typical                   YES
    64yzv2570s56x          0 workarea_size_policy                     auto                      YES
    GOOD Settings
    SQL_ID                CN NAME                                     VALUE                     DEF
    7y2m07bk7qwgx          0 _pga_max_size                            209700 KB                 NO
    7y2m07bk7qwgx          0 active_instance_count                    1                         YES
    7y2m07bk7qwgx          0 bitmap_merge_area_size                   1048576                   YES
    7y2m07bk7qwgx          0 cpu_count                                4                         YES
    7y2m07bk7qwgx          0 cursor_sharing                           similar                   NO
    7y2m07bk7qwgx          0 hash_area_size                           131072                    YES
    7y2m07bk7qwgx          0 optimizer_dynamic_samplin                2                         YES
    7y2m07bk7qwgx          0 optimizer_features_enable                10.2.0.4                  YES
    7y2m07bk7qwgx          0 optimizer_index_caching                  0                         YES
    7y2m07bk7qwgx          0 optimizer_index_cost_adj                 100                       YES
    7y2m07bk7qwgx          0 optimizer_mode                           choose                    NO
    7y2m07bk7qwgx          0 optimizer_secure_view_mer                true                      YES
    7y2m07bk7qwgx          0 parallel_ddl_mode                        enabled                   YES
    7y2m07bk7qwgx          0 parallel_dml_mode                        disabled                  YES
    7y2m07bk7qwgx          0 parallel_execution_enable                true                      YES
    7y2m07bk7qwgx          0 parallel_query_mode                      enabled                   YES
    7y2m07bk7qwgx          0 parallel_threads_per_cpu                 2                         YES
    7y2m07bk7qwgx          0 pga_aggregate_target                     1048576 KB                YES
    7y2m07bk7qwgx          0 query_rewrite_enabled                    true                      YES
    7y2m07bk7qwgx          0 query_rewrite_integrity                  trusted                   NO
    7y2m07bk7qwgx          0 skip_unusable_indexes                    true                      YES
    7y2m07bk7qwgx          0 sort_area_retained_size                  0                         YES
    7y2m07bk7qwgx          0 sort_area_size                           65536                     YES
    7y2m07bk7qwgx          0 star_transformation_enabl                temp_disable              NO
    7y2m07bk7qwgx          0 statistics_level                         typical                   YES
    7y2m07bk7qwgx          0 workarea_size_policy                     auto                      YES
    BAD Plan
    PLAN_TABLE_OUTPUT                                                                                                                                    
    SQL_ID  64yzv2570s56x, child number 0                                                                                                                
    SELECT  --q2   DM_FAC.FAC_NM,     COUNT(DISTINCT DM_ACCT.ACCT_SK),     DM_DRG_SVC_LN.DRG_SVC_LN_DESC                                                 
    FROM     DM_FAC,     DM_ACCT,     DM_DRG_SVC_LN,     DM_ORG_UNIT_GRP,     DM_ORG_UNIT_DIV,                                                           
    DM_DT_QRY DM_DT__DSCH,     DM_BILL_LOC,     DM_DT_QRY DM_DT_VISITSVC,                                                                            
    FACT_VISIT,     DM_RSP_PTY    WHERE     (                                                                                          
    DM_ORG_UNIT_GRP.ORG_UNIT_GRP_SK=DM_ORG_UNIT_DIV.ORG_UNIT_GRP_SK )     AND ( DM_ORG_UNIT_GRP.ARCHIVE_IND                                              
    = :"SYS_B_00" )     AND ( DM_DT_VISITSVC.DT2_SK=FACT_VISIT.SVC_DT2_SK )     AND (                                                  
    DM_BILL_LOC.BILL_LOC_SK=FACT_VISIT.BILL_LOC_SK )     AND (                                                                         
    DM_ORG_UNIT_DIV.ORG_UNIT_DIV_SK=FACT_VISIT.ORG_UNIT_DIV_SK )     AND (                                                             
    FACT_VISIT.DEL_IND=:"SYS_B_01" )     AND ( DM_RSP_PTY.ACCT_SK=DM_ACCT.ACCT_SK )                                                    
    AND ( DM_RSP_PTY.RSP_PTY_TYPE_CD=:"SYS_B_02" )     AND ( DM_ACCT.FAC_CD=DM_FAC.FAC_CD )     AND (                                                    
    DM_ACCT.DSCH_DT=DM_DT__DSCH.DT )     AND ( DM_ACCT.DRG_SVC_LN_SK=DM_DRG_SVC_LN.DRG_SVC_LN                                                        
    Plan hash value: 2053235935                                                                                                                          
    | Id  | Operation                             | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |                                     
    |   0 | SELECT STATEMENT                      |                        |       |       |  7559 (100)|          |                                     
    |   1 |  SORT GROUP BY                        |                        |     1 |   174 |  7559   (2)| 00:00:20 |                                     
    |*  2 |   FILTER                              |                        |       |       |            |          |                                     
    |   3 |    NESTED LOOPS                       |                        |     1 |   174 |  7558   (2)| 00:00:20 |                                     
    |   4 |     NESTED LOOPS                      |                        |     1 |   149 |  7557   (2)| 00:00:20 |                                     
    |*  5 |      HASH JOIN                        |                        |     1 |   128 |  7556   (2)| 00:00:20 |                                     
    |   6 |       NESTED LOOPS                    |                        |     6 |   678 |  7543   (2)| 00:00:20 |                                     
    |   7 |        NESTED LOOPS                   |                        |   170 | 15300 |  7201   (2)| 00:00:19 |                                     
    |*  8 |         HASH JOIN                     |                        |    41 |  3239 |  5141   (2)| 00:00:14 |                                     
    |*  9 |          HASH JOIN                    |                        |    75 |  4725 |  5137   (2)| 00:00:14 |                                     
    |* 10 |           TABLE ACCESS FULL           | DM_ORG_UNIT_DIV        |   170 |  2550 |     5   (0)| 00:00:01 |                                     
    |* 11 |           HASH JOIN                   |                        |   204 |  9792 |  5131   (2)| 00:00:14 |                                     
    |* 12 |            TABLE ACCESS FULL          | DM_DT_QRY              |     7 |    98 |    13  (16)| 00:00:01 |                                     
    |* 13 |            TABLE ACCESS BY INDEX ROWID| FACT_VISIT    | 17647 |   448K|  3893   (2)| 00:00:11 |                                     
    |  14 |             NESTED LOOPS              |                        | 35294 |  1171K|  5116   (2)| 00:00:14 |                                     
    |* 15 |              TABLE ACCESS FULL        | DM_BILL_LOC            |     2 |    16 |     3   (0)| 00:00:01 |                                     
    |* 16 |              INDEX RANGE SCAN         | FV_DMBILLLOC_FK | 35294 |       |   105   (4)| 00:00:01 |                                     
    |* 17 |          TABLE ACCESS FULL            | DM_ORG_UNIT_GRP        |    57 |   912 |     3   (0)| 00:00:01 |                                     
    |* 18 |         TABLE ACCESS BY INDEX ROWID   | DM_RSP_PTY             |     4 |    44 |    50   (0)| 00:00:01 |                                     
    |* 19 |          INDEX RANGE SCAN             | XSI_DMRSPPY_CNRPERSID  |    48 |       |     2   (0)| 00:00:01 |                                     
    |* 20 |        TABLE ACCESS BY INDEX ROWID    | DM_ACCT                |     1 |    23 |     2   (0)| 00:00:01 |                                     
    |* 21 |         INDEX UNIQUE SCAN             | DM_ACCT_PK             |     1 |       |     1   (0)| 00:00:01 |                                     
    |* 22 |       TABLE ACCESS FULL               | DM_DT_QRY              |    30 |   450 |    12   (9)| 00:00:01 |                                     
    |  23 |      TABLE ACCESS BY INDEX ROWID      | DM_FAC                 |     1 |    21 |     1   (0)| 00:00:01 |                                     
    |* 24 |       INDEX UNIQUE SCAN               | DM_FAC_UK              |     1 |       |     0   (0)|          |                                     
    |  25 |     TABLE ACCESS BY INDEX ROWID       | DM_DRG_SVC_LN          |     1 |    25 |     1   (0)| 00:00:01 |                                     
    |* 26 |      INDEX UNIQUE SCAN                | DM_DRG_SVC_LN_PK       |     1 |       |     0   (0)|          |                                     
    Predicate Information (identified by operation id):                                                                                                  
       2 - filter((TO_DATE(:SYS_B_16,:SYS_B_17)<=TO_DATE(:SYS_B_18,:SYS_B_19) AND :SYS_B_00=:SYS_B_07))                                                  
       5 - access("DM_ACCT"."DSCH_DT"="DM_DT__DSCH"."DT")                                                                                            
       8 - access("DM_ORG_UNIT_DIV"."ORG_UNIT_GRP_SK"="DM_ORG_UNIT_GRP"."ORG_UNIT_GRP_SK")                                                               
       9 - access("DM_ORG_UNIT_DIV"."ORG_UNIT_DIV_SK"="FACT_VISIT"."ORG_UNIT_DIV_SK")                                                           
      10 - filter(("DM_ORG_UNIT_DIV"."DIV_CAT01_DESC"=:SYS_B_08 OR                                                                                       
                  "DM_ORG_UNIT_DIV"."DIV_CAT01_DESC"=:SYS_B_09))                                                                                         
      11 - access("DM_DT_VISITSVC"."DT2_SK"="FACT_VISIT"."SVC_DT2_SK")                                                                          
      12 - filter(("DM_DT_VISITSVC"."DT">=TO_DATE(:SYS_B_16,:SYS_B_17) AND                                                                               
                  "DM_DT_VISITSVC"."DT"<=TO_DATE(:SYS_B_18,:SYS_B_19)))                                                                                  
      13 - filter("FACT_VISIT"."DEL_IND"=:SYS_B_01)                                                                                             
      15 - filter(("DM_BILL_LOC"."BILL_LOC_NBR"=:SYS_B_14 OR "DM_BILL_LOC"."BILL_LOC_NBR"=:SYS_B_15))                                                    
      16 - access("FACT_VISIT"."BILL_LOC_SK"="DM_BILL_LOC"."BILL_LOC_SK")                                                                       
      17 - filter(("DM_ORG_UNIT_GRP"."ARCHIVE_IND"=:SYS_B_00 AND                                                                                         
                  INTERNAL_FUNCTION("DM_ORG_UNIT_GRP"."EIS_LVL_1") AND                                                                                   
                  TO_NUMBER("DM_ORG_UNIT_GRP"."ORG_UNIT_GRP_NBR")<>:SYS_B_13))                                                                           
      18 - filter("DM_RSP_PTY"."RSP_PTY_TYPE_CD"=:SYS_B_02)                                                                                              
      19 - access("DM_RSP_PTY"."CNR_PERS_ID_CURR"="FACT_VISIT"."CNR_PERS_ID_CURR")                                                              
           filter("DM_RSP_PTY"."CNR_PERS_ID_CURR" IS NOT NULL)                                                                                           
      20 - filter("DM_ACCT"."CURR_PAT_TYPE_CD"=:SYS_B_10)                                                                                                
      21 - access("DM_RSP_PTY"."ACCT_SK"="DM_ACCT"."ACCT_SK")                                                                                            
      22 - filter(("DM_DT__DSCH"."MTH_NBR"=:SYS_B_12 AND "DM_DT__DSCH"."YR_NBR"=:SYS_B_11))                                                      
      24 - access("DM_ACCT"."FAC_CD"="DM_FAC"."FAC_CD")                                                                                                  
      26 - access("DM_ACCT"."DRG_SVC_LN_SK"="DM_DRG_SVC_LN"."DRG_SVC_LN_SK")                                                                             
    GOOD Plan
    PLAN_TABLE_OUTPUT                                                                                                                                    
    SQL_ID  7y2m07bk7qwgx, child number 0                                                                                                                
    SELECT --q1   DM_FAC.FAC_NM,    COUNT(DISTINCT DM_ACCT.ACCT_SK),    DM_DRG_SVC_LN.DRG_SVC_LN_DESC  FROM                                              
    DM_FAC,    DM_ACCT,    DM_DRG_SVC_LN,    DM_ORG_UNIT_GRP,    DM_ORG_UNIT_DIV,    DM_DT_QRY  DM_DT__DSCH,                                         
    DM_BILL_LOC,    DM_DT_QRY  DM_DT_VISITSVC,    FACT_VISIT,    DM_RSP_PTY  WHERE    (                                                
    DM_ORG_UNIT_GRP.ORG_UNIT_GRP_SK=DM_ORG_UNIT_DIV.ORG_UNIT_GRP_SK  )    AND  ( DM_ORG_UNIT_GRP.ARCHIVE_IND =                                           
    :"SYS_B_00"  )    AND  ( DM_DT_VISITSVC.DT2_SK=FACT_VISIT.SVC_DT2_SK  )    AND  (                                                  
    DM_BILL_LOC.BILL_LOC_SK=FACT_VISIT.BILL_LOC_SK  )    AND  (                                                                        
    DM_ORG_UNIT_DIV.ORG_UNIT_DIV_SK=FACT_VISIT.ORG_UNIT_DIV_SK  )    AND  (                                                            
    FACT_VISIT.DEL_IND=:"SYS_B_01"  )    AND  ( DM_RSP_PTY.ACCT_SK=DM_ACCT.ACCT_SK  )    AND  (                                        
    DM_RSP_PTY.RSP_PTY_TYPE_CD=:"SYS_B_02"  )    AND  ( DM_ACCT.FAC_CD=DM_FAC.FAC_CD  )    AND  (                                                        
    DM_ACCT.DSCH_DT=DM_DT__DSCH.DT  )    AND  ( DM_ACCT.DRG_SVC_LN_SK=DM_DRG_SVC_LN.DRG_SVC_LN_SK  )                                                 
    Plan hash value: 1376284724                                                                                                                          
    | Id  | Operation                                    | Name                      | Rows  | Bytes | Cost (%CPU)| Time     |                           
    |   0 | SELECT STATEMENT                             |                           |       |       | 22053 (100)|          |                           
    |   1 |  SORT GROUP BY                               |                           |     2 |   348 | 22053   (3)| 00:00:57 |                           
    |*  2 |   FILTER                                     |                           |       |       |            |          |                           
    |   3 |    NESTED LOOPS                              |                           |     2 |   348 | 22052   (3)| 00:00:57 |                           
    |   4 |     NESTED LOOPS                             |                           |     2 |   306 | 22050   (3)| 00:00:57 |                           
    |   5 |      NESTED LOOPS                            |                           |     2 |   256 | 22048   (3)| 00:00:57 |                           
    |*  6 |       HASH JOIN                              |                           |     4 |   456 | 22044   (3)| 00:00:57 |                           
    |*  7 |        HASH JOIN                             |                           |     8 |   784 | 22041   (3)| 00:00:57 |                           
    |*  8 |         HASH JOIN                            |                           |    21 |  1743 | 22035   (3)| 00:00:57 |                           
    |*  9 |          TABLE ACCESS FULL                   | DM_BILL_LOC               |     2 |    16 |     3   (0)| 00:00:01 |                           
    |* 10 |          TABLE ACCESS BY INDEX ROWID         | FACT_VISIT       |     5 |   130 |    12   (0)| 00:00:01 |                           
    |  11 |           NESTED LOOPS                       |                           |  3453 |   252K| 22031   (3)| 00:00:57 |                           
    |  12 |            NESTED LOOPS                      |                           |   661 | 32389 | 15399   (4)| 00:00:40 |                           
    |  13 |             NESTED LOOPS                     |                           |   585 | 22230 | 13079   (5)| 00:00:34 |                           
    |* 14 |              TABLE ACCESS FULL               | DM_DT_QRY                 |    30 |   450 |    12   (9)| 00:00:01 |                           
    |  15 |              TABLE ACCESS BY INDEX ROWID     | DM_ACCT                   |    19 |   437 | 13079   (5)| 00:00:34 |                           
    |  16 |               BITMAP CONVERSION TO ROWIDS    |                           |       |       |            |          |                           
    |  17 |                BITMAP AND                    |                           |       |       |            |          |                           
    |  18 |                 BITMAP CONVERSION FROM ROWIDS|                           |       |       |            |          |                           
    |* 19 |                  INDEX RANGE SCAN            | DMACCT_DSCH_DT            |  2098 |       |     7   (0)| 00:00:01 |                           
    |  20 |                 BITMAP CONVERSION FROM ROWIDS|                           |       |       |            |          |                           
    |* 21 |                  INDEX RANGE SCAN            | XSI_DMACCT01_CURRPATTYPCD |  2098 |       |   421   (5)| 00:00:02 |                           
    |* 22 |             TABLE ACCESS BY INDEX ROWID      | DM_RSP_PTY                |     1 |    11 |     4   (0)| 00:00:01 |                           
    |* 23 |              INDEX RANGE SCAN                | XSI_DMRSPPTY_PERS         |     1 |       |     3   (0)| 00:00:01 |                           
    |* 24 |            INDEX RANGE SCAN                  | FV_CNRPERSON_FK    |    13 |       |     2   (0)| 00:00:01 |                           
    |* 25 |         TABLE ACCESS FULL                    | DM_ORG_UNIT_DIV           |   170 |  2550 |     5   (0)| 00:00:01 |                           
    |* 26 |        TABLE ACCESS FULL                     | DM_ORG_UNIT_GRP           |    57 |   912 |     3   (0)| 00:00:01 |                           
    |* 27 |       TABLE ACCESS BY INDEX ROWID            | DM_DT_QRY                 |     1 |    14 |     1   (0)| 00:00:01 |                           
    |* 28 |        INDEX UNIQUE SCAN                     | DM_DT2_QRY_UK             |     1 |       |     0   (0)|          |                           
    |  29 |      TABLE ACCESS BY INDEX ROWID             | DM_DRG_SVC_LN             |     1 |    25 |     1   (0)| 00:00:01 |                           
    |* 30 |       INDEX UNIQUE SCAN                      | DM_DRG_SVC_LN_PK          |     1 |       |     0   (0)|          |                           
    |  31 |     TABLE ACCESS BY INDEX ROWID              | DM_FAC                    |     1 |    21 |     1   (0)| 00:00:01 |                           
    |* 32 |      INDEX UNIQUE SCAN                       | DM_FAC_UK                 |     1 |       |     0   (0)|          |                           
    Predicate Information (identified by operation id):                                                                                                  
       2 - filter((TO_DATE(:SYS_B_16,:SYS_B_17)<=TO_DATE(:SYS_B_18,:SYS_B_19) AND :SYS_B_00=:SYS_B_07))                                                  
       6 - access("DM_ORG_UNIT_DIV"."ORG_UNIT_GRP_SK"="DM_ORG_UNIT_GRP"."ORG_UNIT_GRP_SK")                                                               
       7 - access("DM_ORG_UNIT_DIV"."ORG_UNIT_DIV_SK"="FACT_VISIT"."ORG_UNIT_DIV_SK")                                                           
       8 - access("FACT_VISIT"."BILL_LOC_SK"="DM_BILL_LOC"."BILL_LOC_SK")                                                                       
       9 - filter(("DM_BILL_LOC"."BILL_LOC_NBR"=:SYS_B_14 OR "DM_BILL_LOC"."BILL_LOC_NBR"=:SYS_B_15))                                                    
      10 - filter("FACT_VISIT"."DEL_IND"=:SYS_B_01)                                                                                             
      14 - filter(("DM_DT__DSCH"."MTH_NBR"=:SYS_B_12 AND "DM_DT__DSCH"."YR_NBR"=:SYS_B_11))                                                      
      19 - access("DM_ACCT"."DSCH_DT"="DM_DT__DSCH"."DT")                                                                                            
      21 - access("DM_ACCT"."CURR_PAT_TYPE_CD"=:SYS_B_10)                                                                                                
      22 - filter("DM_RSP_PTY"."CNR_PERS_ID_CURR" IS NOT NULL)                                                                                           
      23 - access("DM_RSP_PTY"."ACCT_SK"="DM_ACCT"."ACCT_SK" AND "DM_RSP_PTY"."RSP_PTY_TYPE_CD"=:SYS_B_02)                                               
      24 - access("DM_RSP_PTY"."CNR_PERS_ID_CURR"="FACT_VISIT"."CNR_PERS_ID_CURR")                                                              
      25 - filter(("DM_ORG_UNIT_DIV"."DIV_CAT01_DESC"=:SYS_B_08 OR "DM_ORG_UNIT_DIV"."DIV_CAT01_DESC"=:SYS_B_09))                                        
      26 - filter(("DM_ORG_UNIT_GRP"."ARCHIVE_IND"=:SYS_B_00 AND INTERNAL_FUNCTION("DM_ORG_UNIT_GRP"."EIS_LVL_1") AND                                    
                  TO_NUMBER("DM_ORG_UNIT_GRP"."ORG_UNIT_GRP_NBR")<>:SYS_B_13))                                                                           
      27 - filter(("DM_DT_VISITSVC"."DT">=TO_DATE(:SYS_B_16,:SYS_B_17) AND                                                                               
                  "DM_DT_VISITSVC"."DT"<=TO_DATE(:SYS_B_18,:SYS_B_19)))                                                                                  
      28 - access("DM_DT_VISITSVC"."DT2_SK"="FACT_VISIT"."SVC_DT2_SK")                                                                          
      30 - access("DM_ACCT"."DRG_SVC_LN_SK"="DM_DRG_SVC_LN"."DRG_SVC_LN_SK")                                                                             
      32 - access("DM_ACCT"."FAC_CD"="DM_FAC"."FAC_CD")                                                                                                  
       

  • Execute a sheel script (that is login to sqlplus and do some query) by ssh

    I have two unix box. lets say...box1's ip is : a.b.c.d and box2's ip is : w.x.y.z
    We have shared the public key by "ssh-keygen -t rsa" in both the box so that it will not prompt password for ssh connection.
    Now, in the 2nd box I wrote a shell script (test.sh) like below..
    #!/usr/bin/sh
    ORACLE_HOME=/u01/app/oracle/product/11.1/client_1
    echo "Hi..." > /popdb/batchApp/scripts/a.txt_1
    $ORACLE_HOME/bin/sqlplus -s user/pass@sid <<EOF > /popdb/batchApp/scripts/a.txt
    select * from dual;
    EOF
    now from the box1, I want to execute the tesh.sh by ssh..run the command below...
    ssh [email protected] exec /full_path/test.sh
    we got an error message like below...
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    and also found that a.txt_1 is generated with the desired output but a.txt is generated as 0 byte file in box2.
    Can anybody give some light on it....thanks..

    Hi;
    Please see:
    SP2-0750 Error when Trying to Invoke SQLPlus Executable [ID 742952.1]
    Login SQL*Plus Encountered SP2-0667 SP2-0750 even $ORACLE_HOME Has Set in Profile [ID 1075034.1]
    "Error 6 initializing SQL*Plus : Message file sp1.msb not found" when invoking SQL*Plus Instant Client [ID 368277.1]
    Regard
    Helios

Maybe you are looking for

  • AP Payment Block urgent

    Dear All I am working in ECC 6.0 version, While posting vendor downpayment in F-48 Tcode, the payment block field is hitting with 'A' automatically, eventhough i didnt give in vedor master. In vendor master I have given as 'free for payment'. Pls giv

  • Home Button Troubleshooting Question

    Hello Is there a way to see if the home button assembly (screen side), or the home button terminals (battery/case side) to see which is causing my home button not to work? I have one ordered to replace, but I just want to test it out to make sure I a

  • Cannot find javax.ejb.CreateException fix classpath

    Hi Guys, I have made a Webdynpro in which I am using an EJB in the libraries of the project. When I access the classes of EJB I am getting a complie time error saying Cannot find class file for javax.ejb.CreateException. Fix the classpath then try re

  • Radius 802.1x LAB TEST

    Hi guys, i planning to do Radius 802.1x LAB TEST. I got a 2950c switch, what are the application i needed ?? any freeware or shareware recommended to do radius authentication ?? Can some1 share me a configuration guide or any reference for this test.

  • Unable to get lineseries to render

    I'm attempting to add a line series to a  column chart that renders fine. But the line series won't render. I created a line chart without the column chart using the exact same dataprovider and the linechart renders just fine <mx:ColumnChart id="slaC