SQL text of session by username wise prompt sql in Oracle RAC?

Hello Oracle gurus

one had idea or no matter what sql query that provide this information from the sql prompt

We have R2 Oracle10g RAC with 2 Sites node on the Solaris platform

We want to control the entire session sql text specified by username wise sql command prompt

Thanks in advance

Concerning
Hitgon

Hello

Select b.SQL_FULLTEXT, a.sid, a.serial #, a.username, a.logon_time, a.osuser, a.program, a.process, a.blocking_session, a.state, a.service_name, a.type, other, a.lockwait, a.CLIENT_IDENTIFIER
GV $ session has, gv$ sqlarea b where a.sid = & sid = b.ADDRESS a.SQL_ADDRESS

This application receive the SID and get the SQL_TEXT and some other information about the user.

Hope that helps.

Concerning

Tags: Database

Similar Questions

  • MySQL to Oracle using LKM SQL to Oracle, poor performance

    Hello

    I'm on the underside of technology.

    I'm try to use ODI to import data from MySQL to Oracle using the LKM SQL to Oracle, it works well for small amounts of documents but once volumes go higher it performs very badly.

    I'm replacing an integration of existing HS dblink to 44 seconds and ODI is 9 minutes.

    The MySQL and Oracle DB are on the same host with an autonomous ODI agent on the same host.

    MySQL 5.6.21

    Oracle 11.2.0.4

    Oracle Data Integrator 12.1.3

    I may try a different approach to dumping the MySQL table to a flat file and import from external table or sqlldr but y at - it a way to make the LKM SQL for Oracle perform better?

    Hello

    This problem has been resolved.

    I was setting the table sizes in batches on the data source server, after you set the values on the target data server is it now works as expected.

    Using a value of 5,000 for the two tables has reduced the operating time of 9 minutes to about 40 seconds.

  • Problem with migration SQL Server Oracle 11.2 2012 DB using SQL Developer Migration workbench

    Hello

    I have a problem when migrating SQL Server Oracle 11.2 2012 using SQL Developer Migration workbench, hope that someone had the same problem before and can give same advide...

    I use SQL Developer Version 4.0.1.14 and Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0. and last jtds - 1.3.

    I created the schema migration_repo, privileges, connected to the third part of Db (SQL Server) and begin a trial with assistant. In the first step of the model to Capture, I get the message from the:

    "Company Capture Capture failed.  Refer to the table MIGRLOG in the repository for more details ".

    But MIGRLOG is empty.

    Here is my log:

    <? XML version = "1.0" encoding = "windows-1252" standalone = 'no '? >

    < Log >

    account <>

    < date > 2014-03-16T 20: 49:17 < / date >

    oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >

    < level > SEVERE < / level >

    oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil < class > < / class >

    < message > Capture

    Capture Enterprise

    Capture failure.  Refer to the MIGRLOG table in the repository for more details < / message >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doOnlineEnterpriseCapture(FullMigrateTask.java:758) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doCapture(FullMigrateTask.java:601) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:400) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:314) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:147) < param > < / param >

    oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193) < param > < / param >

    java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >

    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ (RaptorTaskManager.java:554) < param > RaptorFutureTask.run < / param >

    java.util.concurrent.Executors$ (Executors.java:471) < param > RunnableAdapter.call < / param >

    java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >

    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) < param > < / param >

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615) < param > < / param >

    java.lang.Thread.run(Thread.java:744) < param > < / param >

    oracle.dbtools.migration.workbench.core.logging.LogInfo@68e69a < param > < / param >

    < exception >

    < message > oracle.dbtools.migration.workbench.core.ui.FullMigrateTask$ FullMigrateTaskException: Capture

    Capture Enterprise

    Capture failure.  Refer to the MIGRLOG table in the repository for more details < / message >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 758 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 601 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    line 400 > of < < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 314 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 147 < / line >

    < / framework >

    < frame >

    oracle.dbtools.raptor.backgroundTask.RaptorTask < class > < / class >

    < line > 193 < / line >

    < / framework >

    < frame >

    java.util.concurrent.FutureTask < class > < / class >

    < line > 262 < / line >

    < / framework >

    < frame >

    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ RaptorFutureTask < class > < / class >

    < line > 554 < / line >

    < / framework >

    < frame >

    java.util.concurrent.Executors$ RunnableAdapter < class > < / class >

    < line > 471 < / line >

    < / framework >

    < frame >

    java.util.concurrent.FutureTask < class > < / class >

    < line > 262 < / line >

    < / framework >

    < frame >

    java.util.concurrent.ThreadPoolExecutor < class > < / class >

    < line > 1145 < / line >

    < / framework >

    < frame >

    java.util.concurrent.ThreadPoolExecutor$ Worker < class > < / class >

    < line > 615 < / line >

    < / framework >

    < frame >

    java.lang.Thread < class > < / class >

    < line > 744 < / line >

    < / framework >

    < / exception >

    < / recording >

    account <>

    < date > 2014-03-16T 20: 49:17 < / date >

    oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >

    WARNING < level > < / level >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    <>error message: ORA-06550: line 1, column 14:

    PLS-00201: identifier ' SS2K5ALLPLATFORM. STAGECAPTURE' must be declared

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    : FAILED: Database Migration: FAILURE < / message >

    oracle.dbtools.migration.workbench.core.logging.LogInfo@1e2c9b99 < param > < / param >

    < / recording >

    I try with model db (DB empty, just a single table), but the error is same. However, if I try to copy the acronym tabele from SQL Server to Oracle it works fine...

    I guess it's something with the configuration, but beacause I am new in Oracle still have no idea...

    Any help would be much appreciated

    I thank in advance

    Stefan

    Hello Stefan,

    did you create the repository Migration of your database to Oracle (Tools-> Migration-> repository management)?

    The SS2K5ALLPLATFORM package is usually created when you add the migration of the Oracle database repository and it contains the function StageCapture.

    So please make sure that you have created a repository of migration in an Oracle database and associate it with the first step of your migration.

    -Klaus

  • equivalent of CLRSplitSting function for sql server Oracle

    Hello friends,

    I have a query in SQL Server - which becomes data.

    Select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from dbo. CLRSplitString('2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420','',',') x v join ein_addl_info_v on x.col1 = v.addl_info_id order by sort_seq
    We have same data in oracle too, so I converted the query above to sql to ORACLE like this server...


    Select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from (with t as)
    Select '2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420', ",","double str
    Select regexp_substr(str,'[^,]+',1,level) sub_str *) t connect by level < = regexp_count (str, ',') + 1) x *.

    Join cnh_cs_targ_csce_eur_1.ein_addl_info_v v x.sub_str = v.addl_info_id order of sort_seq


    but I don't get all the data. Can someone check if the query oracle above is equivalent to the above SQL query.

    Thank you/Kumar

    Published by: kumar73 on February 15, 2013 08:47

    So your query:

    select  addl_info_id,
            sort_seq,
            code,
            row_data,
            addl_info_group_id,
            group_sort_seq,
            group_row_data
      from      xmltable(
                         'ora:tokenize($str,",")'
                         passing ',2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420' as "str"
                         columns col1 varchar2(2000) path '.'
                        ) x
            join
                ein_addl_info_v v
              on x.col1 = v.addl_info_id
      order by sort_seq
    /
    

    SY.

  • How to use the concepts Advanced PL/SQL in oracle reports and forms

    Hi all

    Can anyone suggest me how to use the Concepts(nested tables,PAA,Varrays,Objects...) Advanced PL/SQL in Oracle forms.

    In fact, I created a Table whose column of type Varray. now, I want to create an element in oracle forms on this field. can anyone suggest me how to proceed.

    Thank you
    Kumar

    Hello

    Take a look at this one:
    http://SheikYerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    especially the chapter on the block that contains a collection of (2.3.3). The sample is built around a nested table, but you get the idea to adapt to work with a varray.

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • Connect to a Postgre SQL to oracle database.

    I'm trying to connect to a database of Postgre SQL of Oracle SQL Developer, I downloaded the drivers from http://jdbc.postgresql.org/ if the form of a jar and showed up at them in the section preferences drivers third party JDBC. Should I have a new tab connections? If someone could help it would be much appreciated.

    I don't think that Postgres is supported.

  • Convert or map Typedonnees decimal Transact-SQL for Oracle Number data type?

    MSSQL 2005
    Oracle 10.2 g

    In a MSSQL table, I have a column with the data type set on (decimal (1.0), null) with the values of line-1. (695 lines in total)

    In the Oracle table, the proposed mapped column is a number data type. When I import data, I received 695 errors with the message "invalid value for the field. How to properly convert or map Decimal (MSSQL) Transact-SQL for Oracle Number data type for a negative value?

    Thank you.

    How do you load data into Oracle? What tool or programming language you are using? Can you post something cause what you stated in your post should work, but there may be some ODBC, or other type of conversion factors to be taken into account.

     > create table t1 (field1  number(1,0));
    
    Table created.
    
     > insert into t1 values (-1);
    
    1 row created.
    
    UT1 > select * from t1;
    
        FIELD1
    ----------
            -1
    

    HTH - Mark D Powell.

  • Covert SybaseIQ SQL for Oracle

    Hi all

    Can come a help me next secret SybaseIQ SQL for Oracle.

    Select
    t.Sales_rep_id as sales_rep_id
    CASE when
    length (if t.market_id is null then "endif) = 0 or t.market_id is null
    then 0 otherwise cast (t.market_id as integer) end UP as market_id
    "TENDER" as feature_category
    null as is_override_tax_exempt
    null as audit_entered_by_user of ODS. POS_ODS_TENDER t;

    Thank you

    user2281943 wrote:
    Hi all

    Can come a help me next secret SybaseIQ SQL for Oracle.

    Select
    t.Sales_rep_id as sales_rep_id
    CASE when
    length (if t.market_id is null then "endif) = 0 or t.market_id is null
    then 0 otherwise cast (t.market_id as integer) end UP as market_id
    "TENDER" as feature_category
    null as is_override_tax_exempt
    null as audit_entered_by_user of ODS. POS_ODS_TENDER t;

    Thank you

    Try this

    select t.Sales_rep_id as sales_rep_id
           , CASE when length(decode(t.market_id,null,'')) = 0 or t.market_id is null
                  then 0
                  else to_number(t.market_id)
             END as market_id
           , 'TENDER' as feature_category
           , null as is_override_tax_exempt
           , null as audit_entered_by_user
      from ODS.POS_ODS_TENDER t;
    
  • T - SQL in ORACLE functions

    Use the T - SQL functions in ORACLE too, so you can write a script version that works in SYBASE, SQL SERVER and ORACLE when need to use the following functions:

    ceiling, charindex, dateadd, datediff, datename, datepart, day, db_id, db_name, getdate, host_id, host_name, left, len, month, replicate, right, space, str, str_replace, tips, substring, suser_id, suser_name, user_id, user_name and year.

    The file [comp_tsql_ORA_schema.txt | http://forums.databasejournal.com/attachment.php?attachmentid=564 & d = 1258547015] creates the tablespace and scheme to place objects and file [comp_tsql_ORA.txt | http://forums.databasejournal.com/attachment.php?attachmentid=569 & d = 1259256898] create the features in the new schema. They will be available for any diagram of the oracle instance.

    I hope this helps!
    Any suggestion, please contact.
    aklein2003

    Published by: user1958693 on 11/26/2009 10:16

    This makes sense if you migrate an application from sql server, oracle, and if a lot of t - sql functions is used in the application code that you don't want to bother with...

  • assignments from v$ session. UserName and v$ session.program

    All-

    I found the following query to find the sid and serial number to kill a session. I use it whenever I need to do. However, I wrote an Oracle package I found does not show me the user name and the program when I run the query. Is there a way I can specify the name of the program or the user name in this query so I can easily decrypt session I want to?

    Thank you
    ivalum21

    SELECT
         p.spid "Thread ID",
         s.sid "Session ID",
         s.serial# "Serial Num",
         b.name "Background Process",
         s.sql_id "SQL ID",
         s.username "Session User",
         s.osuser "OS User",
         s.status "Status",
         s.program "Program"
    FROM
         v$process p,
         v$bgprocess b,
         v$session s
    WHERE s.status = 'ACTIVE'
         AND s.paddr = p.addr
         AND b.paddr(+) = p.addr
         AND b.name IS NULL
    ORDER BY s.username ;
    Published by: ivalum21 on August 27, 2009 15:48

    If you all you need is to identify your session of many others. You can use DBMS_SESSION. SET_IDENTIFIER to do.

    SYS@etest> /
    
           SID USERNAME                       PROGRAM                                          CLIENT_IDENTIFIER
    ---------- ------------------------------ ------------------------------------------------ --------------------
           188                                oracle@rootbeer (q000)
           198                                oracle@rootbeer (q005)
           201 SYSTEM                         SQL Developer
           202                                oracle@rootbeer (q004)
           205 SYS                            sqlplus@rootbeer (TNS V1-V3)
           211                                oracle@rootbeer (MMNL)
           213                                oracle@rootbeer (MMON)
           214                                oracle@rootbeer (QMNC)
           218                                oracle@rootbeer (CJQ0)
           219                                oracle@rootbeer (RECO)
           220                                oracle@rootbeer (SMON)
    
           SID USERNAME                       PROGRAM                                          CLIENT_IDENTIFIER
    ---------- ------------------------------ ------------------------------------------------ --------------------
           221                                oracle@rootbeer (CKPT)
           222                                oracle@rootbeer (LGWR)
           223                                oracle@rootbeer (DBW0)
           224                                oracle@rootbeer (MMAN)
           225                                oracle@rootbeer (PMON)
    
    16 rows selected.
    
    SYS@etest> exec DBMS_SESSION.SET_IDENTIFIER('this one')
    
    PL/SQL procedure successfully completed.
    
    SYS@etest> l
      1  select SID, username, program, CLIENT_IDENTIFIER from v$session
      2*
    SYS@etest> /
    
           SID USERNAME                       PROGRAM                                          CLIENT_IDENTIFIER
    ---------- ------------------------------ ------------------------------------------------ --------------------
           188                                oracle@rootbeer (q000)
           198                                oracle@rootbeer (q005)
           201 SYSTEM                         SQL Developer
           202                                oracle@rootbeer (q004)
           205 SYS                            sqlplus@rootbeer (TNS V1-V3)                     this one
           211                                oracle@rootbeer (MMNL)
           213                                oracle@rootbeer (MMON)
           214                                oracle@rootbeer (QMNC)
           215
           218                                oracle@rootbeer (CJQ0)
           219                                oracle@rootbeer (RECO)
    
           SID USERNAME                       PROGRAM                                          CLIENT_IDENTIFIER
    ---------- ------------------------------ ------------------------------------------------ --------------------
           220                                oracle@rootbeer (SMON)
           221                                oracle@rootbeer (CKPT)
           222                                oracle@rootbeer (LGWR)
           223                                oracle@rootbeer (DBW0)
           224                                oracle@rootbeer (MMAN)
           225                                oracle@rootbeer (PMON)
    
    17 rows selected.
    
  • SQL Developer Oracle 11g XE database error

    Hello

    I am trying to create a new connection in SQL Developer Version 3.2.20.09 in the Oracle 11 g XE database, but I still encounter the error "status: failed Test failed: IO error: the network adapter could not establish the connection.

    I type the commands below in the command prompt.

    lsnrctl stop
    lsnrctl start
    lsnrctl status
    lsnrctl service
    set


    Here are the results in the command prompt:

    C:\Users\paul. John.s.Calzado > lsnrctl stop

    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 5 April 2013 17:58
    : 52

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

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))
    AMT-12541: TNS:no listener
    AMT-12560: TNS:protocol adapter error
    AMT-00511: no listener
    32-bit Windows error: 2: no such file or directory
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = MW74Q2YZ4X4F09.dir.svc.a
    ccenture.com) (port = 1521)))
    TNS-12545: Connect failed because target host or object does not exist
    AMT-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows error: 1004: unknown error

    C:\Users\paul. John.s.Calzado > lsnrctl start

    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 5 April 2013 17:58
    : 57

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

    From tnslsnr: Please wait...

    AMT-12560: TNS:protocol adapter error
    AMT-00530: Protocol adapter error


    C:\Users\paul. John.s.Calzado > lsnrctl status

    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 5 April 2013 17:59
    : 01

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

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))
    AMT-12541: TNS:no listener
    AMT-12560: TNS:protocol adapter error
    AMT-00511: no listener
    32-bit Windows error: 2: no such file or directory
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = MW74Q2YZ4X4F09.dir.svc.a
    ccenture.com) (port = 1521)))
    TNS-12545: Connect failed because target host or object does not exist
    AMT-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows error: 1004: unknown error

    C:\Users\paul. John.s.Calzado > lsnrctl service

    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 5 April 2013 17:59
    : 05

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

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))
    AMT-12541: TNS:no listener
    AMT-12560: TNS:protocol adapter error
    AMT-00511: no listener
    32-bit Windows error: 2: no such file or directory
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = MW74Q2YZ4X4F09.dir.svc.a
    ccenture.com) (port = 1521)))
    TNS-12545: Connect failed because target host or object does not exist
    AMT-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows error: 1004: unknown error

    C:\Users\paul. John.s.Calzado > set
    ALLUSERSPROFILE = C:\programdata
    AppData is C:\Users\paul. John.s.calzado\AppData\Roaming
    CommonProgramFiles = c: files
    CommonProgramFiles (x 86) = c: Program Files (x 86) \Common Files
    CommonProgramW6432 = c: files
    COMPUTERNAME = MW74Q2YZ4X4F09
    ComSpec=C:\windows\system32\cmd.exe
    FP_NO_HOST_CHECK = NO
    HOMEDRIVE = C:
    HOMEPATH = \Users\paul. John.s.Calzado
    LocalAppData is C:\Users\paul. John.s.calzado\AppData\Local
    LOGONSERVER = \\MRCDC1801
    NUMBER_OF_PROCESSORS = 4
    OS = Windows_NT
    Path=C:\oraclexe\app\oracle\product\11.2.0\server\bin; C:\Windows\System32; C:\wi
    ndows; C:\windows\System32\Wbem; C:\windows\System32\WindowsPowerShell\v1.0\
    PATHEXT = .COM; EXE;. BEATS;. CMD;. VBS;. VBE;. JS;. JSE;. WSF;. WSH;. MSC
    PROCESSOR_ARCHITECTURE = AMD64
    PROCESSOR_IDENTIFIER = Intel64 family 6 model 37 Stepping 2 GenuineIntel
    PROCESSOR_LEVEL = 6
    PROCESSOR_REVISION = 2502
    ProgramData = ProgramData
    ProgramFiles = c: Program Files
    ProgramFiles (x 86) = c: Program Files (x 86)
    ProgramW6432 = C:\Program Files
    PROMPT = $P$ G
    PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC = C:\Users\Public
    SESSION = Console
    SYSDRIVE = SYSTEMFOLDER %
    SystemDrive = C:
    SystemRoot = C:\windows
    TEMP=C:\Users\PAULJO~1.CAL\AppData\Local\Temp
    TMP=C:\Users\PAULJO~1.CAL\AppData\Local\Temp
    UATDATA = C:\windows\SysWOW64\CCM\UATData\D9F8C395-CAB8-491 d-B8AC-179A1FE1BE77
    USERDNSDOMAIN IS DIR. SVC. ACCENTURE.COM
    USERDOMAIN = DIR
    USERNAME = Paul.John.s.Calzado
    UserProfile is C:\Users\paul. John.s.Calzado
    windir = C:\windows
    windows_tracing_flags = 3
    windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

    C:\Users\paul. John.s.Calzado >



    Here are the results of ping as well:

    C:\Users\paul. John.s.Calzado > ping localhost

    Ping MW74Q2YZ4X4F09.dir.svc.accenture.com [127.0.0.1] with 32 bytes of data:
    Reply from 127.0.0.1: bytes = 32 time < 1 ms TTL = 128
    Reply from 127.0.0.1: bytes = 32 time < 1 ms TTL = 128
    Reply from 127.0.0.1: bytes = 32 time < 1 ms TTL = 128
    Reply from 127.0.0.1: bytes = 32 time < 1 ms TTL = 128

    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, received = 4, lost = 0 (0% loss),
    Time approximate round trip in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, average = 0ms


    C:\Users\paul. John.s.Calzado > tnsping localhost

    AMT Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2
    013 18:07:46

    Copyright (c) 1997, 2010, Oracle. All rights reserved.

    Use settings files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora

    Name of HOST adapter used to resolve the alias
    Try to contact (DESCRIPTION = (CONNECT_DATA = (SERVICE_NAME =)) (ADDRESS = (PROTO
    (COL = TCP)(HOST=127.0.0.1) (PORT = 1521)))
    AMT-12541: TNS:no listener

    JP wrote:
    I type the commands below in the command prompt.

    Use the services control panel to start the XETNSListener service, if the command line does not work for you.

    >

    lsnrctl stop
    lsnrctl start

    These two cmmands on the latest variants of Win, needs a privs elevated command prompt IE started with run as administrator...
    to avoid any error below.

    C:\Users\paul. John.s.Calzado > lsnrctl start

    From tnslsnr: Please wait...

    AMT-12560: TNS:protocol adapter error
    AMT-00530: Protocol adapter error

    Name of HOST adapter used to resolve the alias
    Try to contact (DESCRIPTION = (CONNECT_DATA = (SERVICE_NAME =)) (ADDRESS = (PROTO
    (COL = TCP)(HOST=127.0.0.1) (PORT = 1521)))
    AMT-12541: TNS:no listener

    As long as you have 'no listener', you can't wait to connect to the site of the developer SQL or any other LDAP client.

  • Developer unable to connect SQL database Oracle as a SYSDBA

    Hi all
    Recently, I installed SQL Developer3.0 on my machine and try to create the connection to the local Oracle server. But something confuses me. When I login as normal role, it can connect DB successfully; When I connect as sysdba role named sys, it has always failed and show "name of user and password invalid. I don't know that the username and password are right, because I haved connected the oracle DB from pl/SQL with the same user name and password. And I also chose the role as sysdba. SQL Developer3.0 not support connect as sysdba? I would be very grateful if someone could give me a helping hand. Thanks in advance.

    Hi 851634,

    Do you need a password for remote sysdba (old link) file?
    Cannot connect as sysdba in Oracle Enterprise Management Console

    You can try to open a session (loopback) on the network as sysdba, which requires a password file.

    -Turloch
    Team SQLDeveloper

  • A question about the Oracle SQL Developer Oracle instance connection

    Hi all

    I would be grateful if you could kindly give me a helping hand.

    Recently, I installed the Oracle 11 g on Linux (ubuntu 8.10) database. I not create startup scripts. So here's how I start the server: (my linux user name is "dariyoosh", but in order to start the server I have connection on the terminal shell as user 'oracle')
    dariyoosh@alborz:~$ su oracle
    Password: 
    oracle@alborz:/home/dariyoosh$ cd
    oracle@alborz:~$ ORACLE_SID=database01
    oracle@alborz:~$ . oraenv
    ORACLE_SID = [database01] ? 
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 is /u01/app/oracle
    oracle@alborz:~$ sqlplus '/as sysdba'
    ...
    SQL> STARTUP NOMOUNT
    ORACLE instance started.
    ...
    SQL> ALTER DATABASE MOUNT;
    ...
    SQL> ALTER DATABASE OPEN;
    
    Database altered.
    Then I can work without any problems with my database and everything works pretty well. Today, I decided to install Oracle SQL Developer IDE as it makes it easier to modify the SQL code. My problem is that after reading the tutorial Oracle online, that I am still able to connect to my database. Firstly according to the method that I wrote, I have set up the Oracle instance. But then when I run Oracle SQL Developer I don't know what to choose for the user name and password? because since SQL * Plus shell as you can see I always write: "sqlplus 'virtue sysdba' and it does not prompt me for any password, I can access the database directly." Any idea? What password? What user name? for Oracle SQL Developer?

    Thanks in advance.

    When you connect "/ as sysdba", you actually connect as the user named SYS from the privileges of your operating system. SYS is the owner of the database and a privileged user. You really want to use this username for the day to day operations, but only for what can do only SYS. If you need a different user name. Several Oracle databases have a user named SCOTT who has a number of tables for use tutorial. By default, the password for SCOTT's "Tiger." You may also have other demo users, such as "HR". I admit that I forgot what is the password of the HR, but it doesn't really matter because SYS can change with this command:

    ALTER USER hr IDENTIFIED BY whateveryouwant;
    

    This command:

    SELECT USERNAME FROM ALL_USERS;
    

    lists all the users in your database. Understand that many of these users are there as owners of objects such as stored procedures and tables for Application Express, or TYPEs for Oracle Locator, not for general use. When you are ready to create your own objects, ask SYS create a username for them with

    CREATE USER myusername IDENTIFIED BY mypassword;
    

    and grant that user the privileges as necessary. You'll want to read before you get too far - I think that the developer of the Application Guide is a good starting point.

  • Question to sql server oracle DBlink

    Hello

    I followed steps below

    1 connection configured and tested ODBC connection is successful and ODBC calls SQLT.

    2. I added under entry in the C:\app\product\11.2.0\dbhome_1\hs\admin\initdg4odbc.ora file

    HS_FDS_CONNECT_INFO = SQLT

    HS_FDS_TRACE_LEVEL = OFF

    3. turn under entry in the tnsnames.ora file

    SQLSERVER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp (PORT = 1551))(HOST=mylocalhostname))

    (CONNECT_DATA = (SID = dg4odbc))

    (HS = OK)

    )

    * I also tried SID = SQLT in tnsnames file

    4. added under entry in the listner

    SID_LIST_SQLSERVER =

    (SID_LIST =

    (SID_DESC =

    (ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)

    (SID_NAME = dg4odbc)

    (PROGRAM = dg4odbc)

    )

    )

    ADR_BASE_SQLSERVER = directory

    SQLSERVER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1551))(HOST = mylocalhostname))

    )

    * I also tried SID_NAME = SQLT file listner

    5 lsnrctl reload

    6 created db link

    CREATE SQLSERVER1 LINK DATABASE to CONNECT to 'MyUser' IDENTIFIED BY 'Mypassword' USING 'SQLSERVER ';

    but still I am getting below error.

    ERROR on line 1:

    ORA-28545: error diagnosed by Net8 when connecting to an agent

    Cannot retrieve the text of the message NETWORK/NCR 65535

    ORA-02063: preceding 2 lines of *.

    I also followed link below

    https://Oracle-base.com/articles/Misc/heterogeneous-services-generic-connectivity

    even that also does not work. kindly help me

    Hello, it seems that listener or HS is not allowed.

    Check the status of the listener, then try with HS_FDS_CONNECT_INFO =:/ / in initdg4odbc.ora

    Do

    c: > lsnrctl stop SQL SERVER

    c: > lsnrctl start SQLSERVER

    run

    c: > lsnrctl status SQLSERVER

    and after release.

    This OPINION score could be useful 234517.1.

    Concerning

  • How to hide the field element of text based on true or false cases in the oracle apex

    Hello

    I have a set of text field in the oracle apex:

    1. Order number
    2. Revision number

    When we open the report, the review must be hidden.

    Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.

    If he enters the number of duplicate order, the revision number should be hidden.

    Help, please.

    Hi 2932464,

    2932464 wrote:

    Hello

    I have a set of text field in the oracle apex:

    1. Order number
    2. Revision number

    When we open the report, the review must be hidden.

    Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.

    If he enters the number of duplicate order, the revision number should be hidden.

    Help, please.

    Give you an example of how to do to get there.

    Step 1. Create three elements of the Page

    (1) P1_ORDER_NO - text field

    (2) P1_REVISION_NO - text field

    (3) P1_ENABLE_DISABLE_REVNO - hidden, protected value - no.

    2 create dynamic Actions 3

    (1) disable the revision on the loading of the page number

    Event - loading of the Page

    Action - disable

    Fires when the result of the event is - real

    Selection type - point

    Point - P1_REVISION_NO

    (2) check the number of duplicate order

    Event - change

    Selection type - item (s)

    Article (s) - P1_ORDER_NO

    Condition - is not null

    Action - to execute the PL/SQL Code

    Generate in front of false action - not checked

    Fires when the result of the event is - real

    Fire on page load - disabled

    Stop execution on error - checked

    Wait for the result - verified

    PL/SQL - code

    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    

    To present the page = P1_ORDER_NO

    Page referred to return = P1_ENABLE_DISABLE_REVNO

    (3) enable and disable the revision number

    Event - change

    Selection type - item (s)

    Article (s) - P1_ENABLE_DISABLE_REVNO

    condition - greater than or equal to

    value - 1

    Action - disable

    Fire on Page Laod - disabled

    Generate the opposite action of false - verified

    Selection type = item (s)

    Article (s) - P1_REVISION_NO

    Hope this helps you,

    Kind regards

    Jitendra

    DER_NO

Maybe you are looking for