Statistics in SQL Developer

Hi,
I have an anonymous block like:
DECLARE
            P_CURSOR              TYPES.REF_CURSOR;
            P_SEARCH_TXT          CLOUD_USER.FIRST_NM%TYPE := 'as';
            P_SEARCH_TXT1         CLOUD_USER.FIRST_NM%TYPE := 'as%';
            P_SEARCH_TXT2         CLOUD_USER.FIRST_NM%TYPE := '%as%';
            P_LOGINID             NUMBER := 28261;
            P_INDEX               NUMBER := 1;
            P_REC_NUM             NUMBER := 100;
            P_GRP_KEY             NUMBER;
BEGIN
            SEARCH_FRIEND_DETAILS(
                        P_CURSOR, P_SEARCH_TXT, P_SEARCH_TXT1, P_SEARCH_TXT2, P_LOGINID, P_INDEX, P_REC_NUM, P_GRP_KEY);
END;I have modified SEARCH_FRIEND_DETAILS proceudre. Now, how can I compare the performance. I dont have SQL* Plus on my machine.
Thanks in advance.

SQL Developer does show in the bottom:
Task completed in ... seconds. I guess that would be a basic indicator on how long your procedure takes..
or dbms_output the time it takes to execute.
declare
n number;
begin
n := dbms_utility.get_time;
-- do your stuff
dbms_output.put_line( 'Total times: '||(to_char(dbms_utility.get_time-n)/100)||' seconds' );
end;
Edited by: S11 on Feb 8, 2012 3:04 PM

Similar Messages

  • SQL Developer Behavior When Gathering Table/Index Statistics

    Hey All,
    Not sure if this has been posted yet. I did a search and did not find any threads on the topic though.
    I noticed with SQL Developer 2.x, when you using the context menu to gather table/index statistics for a given table, you get no modal progress/waiting window like you did in 1.x. It just kind of "does nothing", even though it did actually execute the DBMS_STATS package. If you press cancel and try to navigate around, you get multiple "Connection is Busy" errors. Eventually it will come back and say "Statistics gathered for table <whatever>". In the old versions there was just a modal window with an animated progress bar while it ran the DBMS_STATS package. What happened to that? Or is this something unique to my install? Anyone else ran into this? Is there a fix or somewhere I can report this as an official bug? FWIW I'm running 2.1.1.64, and this did occur in the initial 2.0 release.
    It is very confusing the first time you run into it... I pressed the "apply" button several times thinking it didn't take, but it ended up running the DBMS_STATS for every click I did.
    Thanks!

    Same happens to all the other context menu opened dialogs. Indeed very confusing at first and disturbing.
    The only official site to report bugs is Metalink/MOS, but you might be lucky if someone from the team picks it up here.
    Regards,
    K.

  • How to configure Oracle Sql Developer for 9i

    Hi,
    We are using oracle 9i for existing application, and i am trying to connect oracle 9i through SQL developer 1.5.1, i got an error message "Unsupported Oracle Database Version".
    Appreciate if any body guide me in this.
    regards
    Husal.

    After removing dictionary statistics with dbms_stats.delete_schema_stats(ownname => 'SYS') I noticed the initial SQL Developer object list query became very slow.
    Removal of dictionary statistics increased the predicted Oracle optimizer (CBO) costs. Previous SYS statistics were collected perhaps without realising the consequences.
    You may wish to try dbms_stats.gather_schema_stats(ownname => 'SYS', method_opt => 'FOR ALL COLUMNS SIZE AUTO', sample_size => dbms_stats.auto_sample_size).
    Recent Oracle 10G versions include a gather_dictionary_stats routine.
    Suggest you try this on a development DB first.

  • How to create a counter using Oracle SQL Developer?

    Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)

    I'm giving here one basic post - hope this will solve your problem --
    SQL>
    SQL>
    SQL> create table audit_info
      2   (
      3     usr        varchar2(50),
      4     log_time   timestamp(6)
      5    );
    Table created.
    SQL>
    SQL>
    SQL>  create table err_log
      2     (
      3       log_cd      varchar2(20),
      4       log_desc    varchar2(500)
      5     );
    Table created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_err(errcd   in  varchar2,
      2                                        errnm   in  varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into err_log values(errcd,errnm);
      7      commit;
      8    end;
      9  /
    Procedure created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_aud(ud   in varchar2,
      2                                        unm  in varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into audit_info values(ud,unm);
      7      commit;
      8    exception
      9      when others then
    10        ins_err(sqlcode,sqlerrm);
    11    end;
    12  /
    Procedure created.
    SQL>
    SQL>
    SQL>
    SQL> create or replace trigger log_odsuser1
      2   after logon on odsuser1.schema
      3   begin
      4     ins_aud('ODSUSER1',sysdate);
      5   exception
      6     when others then
      7       ins_err(sqlcode,sqlerrm);
      8   end;
      9  /
    Trigger created.
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> select * from audit_info;
    USR
    LOG_TIME
    ODSUSER1
    12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
    Regards.
    Satyaki De.

  • AUTOTRACE stats different in SQL Developer vs SQL Plus

    Using SQL Developer 3.2.20.09, database is 11.2 on Linux. I'd like to know why I get different stats when using AUTOTRACE in SQL Developer vs SQL Plus. If I do the following in SQL Developer and in SQL Plus I get a very different set of stats:
    set autotrace on
    select * from emp;
    set autotrace off
    I run this with "run worksheet" in SQL Developer and I see this set of stats:
    Statistics
    4 user calls
    0 physical read total multi block requests
    0 physical read total bytes
    0 cell physical IO interconnect bytes
    0 commit cleanout failures: block lost
    0 IMU commits
    0 IMU Flushes
    0 IMU contention
    0 IMU bind flushes
    0 IMU mbu flush
    I do the same in SQL Plus and I see these stats:
    Statistics
    0 recursive calls
    0 db block gets
    7 consistent gets
    0 physical reads
    0 redo size
    1722 bytes sent via SQL*Net to client
    519 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    14 rows processed
    A very different set of stats. The stats in shown in SQL Plus seem to be much more useful to performance optimization over the one shown in SQL Developer. Why the different set of stats for each? Thanks.

    Cross-referencing to another recent thread on this topic:
    Re: set autotrace on statistics in sqldeveloper (oracle 11g) is wrong

  • SQL format in SQL tab for SQL developer v2.1.1.64

    I have been using Toad for years, recently we moved to SQL Developer. However, can anyone tell me how to make SQL in SQL tab looks like in TOAD, I have an example as below. Thanks at advance!
    in SQL Developer:
    CREATE TABLE "SCHEMA"."F1005"
        "FID"      NUMBER(*,0) NOT NULL ENABLE,
        "NUMOFPTS" NUMBER(*,0) NOT NULL ENABLE,
        "ENTITY"   NUMBER(*,0) NOT NULL ENABLE,
        "EMINX" FLOAT(64) NOT NULL ENABLE     ,
        "EMINY" FLOAT(64) NOT NULL ENABLE     ,
        "EMAXX" FLOAT(64) NOT NULL ENABLE     ,
        "EMAXY" FLOAT(64) NOT NULL ENABLE     ,
        "EMINZ" FLOAT(64)                     ,
        "EMAXZ" FLOAT(64)                     ,
        "MIN_MEASURE" FLOAT(64)               ,
        "MAX_MEASURE" FLOAT(64)               ,
        "AREA" FLOAT(64) NOT NULL ENABLE      ,
        "LEN" FLOAT(64) NOT NULL ENABLE       ,
        "POINTS" LONG RAW                     ,
        CONSTRAINT "F1005_PK" PRIMARY KEY ("FID") DISABLE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "SCHEMA_FEATURE_SML_DATA" ;
    CREATE INDEX "SCHEMA"."F1005_AREA_IX2" ON "SCHEMA"."F1005"
        "AREA"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 NOLOGGING COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "SCHEMA_FEATURE_SML_INDX" ;in TOAD
    CREATE TABLE SCHEMA.F1005
      FID          INTEGER                          NOT NULL,
      NUMOFPTS     INTEGER                          NOT NULL,
      ENTITY       INTEGER                          NOT NULL,
      EMINX        FLOAT(64)                        NOT NULL,
      EMINY        FLOAT(64)                        NOT NULL,
      EMAXX        FLOAT(64)                        NOT NULL,
      EMAXY        FLOAT(64)                        NOT NULL,
      EMINZ        FLOAT(64),
      EMAXZ        FLOAT(64),
      MIN_MEASURE  FLOAT(64),
      MAX_MEASURE  FLOAT(64),
      AREA         FLOAT(64)                        NOT NULL,
      LEN          FLOAT(64)                        NOT NULL,
      POINTS       LONG RAW
    TABLESPACE SCHEMA_FEATURE_SML_DATA
    PCTUSED    40
    PCTFREE    10
    INITRANS   1
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                FREELISTS        1
                FREELIST GROUPS  1
                BUFFER_POOL      DEFAULT
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    CREATE INDEX SCHEMA.F1005_AREA_IX2 ON SCHEMA.F1005
    (AREA)
    NOLOGGING
    TABLESPACE SCHEMA_FEATURE_SML_INDX
    PCTFREE    10
    INITRANS   2
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                FREELISTS        1
                FREELIST GROUPS  1
                BUFFER_POOL      DEFAULT
    NOPARALLEL;

    Thanks for your reply, however, there are not any vendors call TOAD...
    The actual problem are:
    1. Do not show double quote (""), ie:
    in SQL Developer
    CREATE INDEX "SCHEMA"."F1005_AREA_IX2" ON "SCHEMA"."F1005"in TOAD
    CREATE INDEX SCHEMA.F1005_AREA_IX2 ON SCHEMA.F10052. has a break after numbers, ie:
    in SQL Developer
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      )in TOAD
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                FREELISTS        1
                FREELIST GROUPS  1
                BUFFER_POOL      DEFAULT
               )Any suggestions will be appreciated.
    Thanks,

  • SQL Developer Connection Error: Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

    Hi, I'm running the following setup:
    Mac OS X 10.8.4
    Virtual Box 4.2.16 r86992
    Oracle Developer Days (don't know the version, just downloaded it)
    SQL Developer 3.2.20.09
    Networking is host-only, I tried bridged but that doesn't make a difference for the problem at hand. I can ping my virtual box just fine, telnet to port 1521 looks good too:
    $ ping 192.168.56.101
    PING 192.168.56.101 (192.168.56.101): 56 data bytes
    64 bytes from 192.168.56.101: icmp_seq=0 ttl=64 time=0.449 ms
    ^C
    --- 192.168.56.101 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.449/0.449/0.449/0.000 ms
    $ telnet 192.168.56.101 1521
    Trying 192.168.56.101...
    Connected to 192.168.56.101.
    Escape character is '^]'.
    asdf
    asdf
    Connection closed by foreign host.
    When I create a new connection with sql developer, with the same hostname / IP (192.168.56.101), Port 1521 (didn't change that) and SID orcl, basic connection type, it can't even connect, throwing the error mentioned in the subject:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    I have looked at various threads in the forums here but I'm still stymied why the connection seems to be ok, yet sql developer has problems with it. If I create an ssh tunnel so sql developer only has to connect to localhost it works:
    ssh -L 1521:192.168.56.101:1521 -l oracle 192.168.56.101
    Message was edited by: 2a2e67cd-b5b2-4229-9fa6-21f5dfe0760d

    Hi Ali,
    This may be of varoius reasons..
    Is the database that you are connecting on the same PC?
    You have specified Hostname: localhost.
    If not please replace it with the IP of that server.
    Else please check whether the database listener is started or not. if not please start the listener.
    Check the SID by tnsping command.
    Hope this will help you..
    Thanks
    Ashok

  • Problems in Sql Developer

    Hi,
    I'm using Sql Developer 1.0.0.14.67 on Mac OS X Version 10.4.6.
    1) When I click on a table,I dont Get Information Regarding Columns,Indexes,Constraints,Grants,Statistics,Triggers,SQl ...
    Only I get Data in the table.
    Whereas My Frnd who is using the Same appl On Mac on Some other M/c is getting all this info.
    Is there any Tweak to get this Info?
    2) If I open any trigger ,sql Developer Hangs..
    3) I dont get reports when it is run..
    Pls Help me..
    Prashanth Deshmukh

    I have been having the same issue with SQL developer. When I click on a table the only tab that has information for me is the data tab. It works just fine on my Windows machine at work.
    Specs for machine:
    Powerbook G4 1.5 GHz processor
    Max OS 10.4.6
    SQL Developer 1.0.0.15.27

  • SQL Developer shows I/O Exception

    Hi
    I am new to oracle
    Two weeks ago I have installed Oracle 10g and SQL Developer 1.5.4 in my laptop.
    Initially everything was working fine.
    For the last one week, SQL developer has been showing an error message "Network Adaptor could not establish the connection". But SQL Plus is working fine
    I am not able to understand the problem...I am not able to use SQL Developer
    pls help me

    Thanks for ur patience
    I have just executed the commands that u have asked me to do..
    but I couldnt figure out how to fix this issue.... please help me
    Here are the results:
    C:\Documents and Settings\Srinivasam>ping santosh
    Ping request could not find host santosh. Please check the name and try again.
    C:\Documents and Settings\Srinivasam>ping localhost
    Pinging Srinivasam [127.0.0.1] with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Documents and Settings\Srinivasam>hostname
    Srinivasam
    C:\Documents and Settings\Srinivasam>nslookup santosh
    Server:  dslrouter.westell.com
    Address:  192.168.1.1
    **** dslrouter.westell.com can't find santosh: Non-existent domain*
    C:\Documents and Settings\Srinivasam>ipconfig /all
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : Srinivasam
    Primary Dns Suffix  . . . . . . . :
    Node Type . . . . . . . . . . . . : Unknown
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : westell.com
    Ethernet adapter Wireless Network Connection:
    Connection-specific DNS Suffix  . : westell.com
    Description . . . . . . . . . . . : Intel(R) Wireless WiFi Link 5100
    Physical Address. . . . . . . . . : 00-21-6B-24-7D-FE
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 192.168.1.36
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.1
    DHCP Server . . . . . . . . . . . : 192.168.1.1
    DNS Servers . . . . . . . . . . . : 192.168.1.1
    Lease Obtained. . . . . . . . . . : Wednesday, June 17, 2009 11:11:11 PM
    Lease Expires . . . . . . . . . . : Thursday, June 18, 2009 11:11:11 PM
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Description . . . . . . . . . . . : Intel(R) 82567V Gigabit Network Conn
    ection
    Physical Address. . . . . . . . . : 00-1C-7E-7D-A2-B7

  • SQL Developer takes 7 minutes to bring back list of packages

    The database is 11g R2 on 64bit Linux.
    Instance has multiple schemas
    SQLDev is v3.1.07 (download with JDK)
    SQL Dev connects without a problem.
    Click the "+" next to Functions, in a few seconds I get the list of functions.
    Click the "+" next to Procedures, in a few seconds I get the list of procedures.
    Click the "+" next to Packages, between 5 and 10 MINUTES later the list will display.
    The exact objects I choose to explore, or the order does not seem to matter.
    After 2 or 3 objects, the next load takes an unacceptable length of time.
    What is going on here?

    You can try to find out if the underlying query, that the sql developer issues against the data dictionary is slow.
    To do so first find the query, then issue the same query inside sql developer and check out the execution time and explain plan from there.
    To find the query you can connect with a DBA account. Use "Tools/Sessions .. " to monitor the sessions. Find the appropriate connection (check for the correct db user, and the module should be SQL Developer). Then start the slow action in the different session. Switch back to the session monitor and refresh it. Check out the SQL that is shown on "Active SQL" Tab.
    If this query is slow, then it is not a problem opf the sql developer but of your database installation. Maybe the dictionary cache is to small or the database did not apply statistics to the system tables. In such a case report the problem to your DBA.
    it could also be a problem of the connection. Do you use an oracle client to open the connection or something like a thin jdbc driver? try with the oracle client if you don't have that already.

  • SQL Developer Optimization

    I have a few questions about SQL Developer that I was wondering if someone can help with:
    1. Does SQL Developer have the sql optimization feature that is present in Toad?
    Within TOAD, there is a facility that will help the user to optimize the sql and I was wondering if this was present in SQL Developer
    2. When using the compare facility for showing the difference between 2 tables, does SQL Developer show the data that is different?
    Thanks

    K,
    There are a couple of project in the works for this. Heres a quick exert of what we are planning. There is no confirmed release train for this at the minute though. This is provided for information only.
    SQL Code Advisor*
    By leveraging database features like Automated Workload Repository (AWR) and Active Session History (ASH), the potential exists to evaluate any SQL statement within a package or worksheet that has been executed and flag any statements exceeding some performance threshold. The developer will then immediately know if the SQL in question merits any tuning effort or should be left "as is".
    The goal of SQL Code Advisor is to provide real-time feedback to developer within an editor or worksheet on factors which may impact performance. Without going into great detail in this overview, here are some:
    * Connected to database instance with missing system statistics
    * SQL references tables and indexes with missing or stale statistics, or indexes in an invalid state
    * Population and cardinality estimates of referenced tables
    * Type, compression status, cache status, degree of parallelism for referenced tables
    * Explain plan indicates Full Table Scan performed on a large table
    * Explicit datatype conversions of columns in predicates, preventing use of available indexes
    SQL Tuning Advisor*
    By leveraging existing database APIs in the DBMS_SQLTUNE and DBMS_ADVISOR packages, with appropriate UI enhancements, this SQL Tuning Advisor extension will allow a developer to generate a report to warn when SQL performance may be impaired by:
    * stale optimizer statistics
    * missing indexes
    * improper coding practices.
    These APIs are able to perform more in-depth analyses of SQL statements than the optimizer. As a consequence, in addition to offering advice on specific environment and coding issues, it can produce a SQL Profile. The Profile contains additional statistics which help the optimizer find a more efficient execution plan. The original execution plan can be presented side-by-side with the enhanced SQL Profile-assisted execution plan for comparison. The developer has control over which, if any, of the recommendations to accept and deploy.

  • Anonymous Block in SQL Developer

    I am using SQL Developer 3.1x and trying to run a pretty simple Anonymous block and am having trouble declaring a variable. This block runs successfully:
    set SERVEROUTPUT on
    --declare
    -- V_CRT := CHR(13);
    begin
    for t in (select owner, table_name from dba_tables where owner = 'ABC123)
    LOOP
    DBMS_STATS.GATHER_TABLE_STATS(t.owner, t.table_name);
    end loop;
    DBMS_OUTPUT.PUT_LINE('Statistics Calculations complete');
    DBMS_OUTPUT.PUT_LINE('Begin Record Counts');
    -- DBMS_OUTPUT.PUT_LINE(v_crt);
    -- DBMS_OUTPUT.PUT_LINE(V_CRT);
    end;
    If I remove my comments in an effort to include my Declare statement, I receive: PLS-00103: Encountered the symbol "=" when expecting one of the following
    How do I declare / initialize the variable "v_crt"? Admittedly this is a VERY basic Block but I just started to build out a more "robust" procedure and am getting stumped.
    Thank you for your help!

    The symbol *:=* is for assignment, not variable declaration. Just give the variable name and then its type, like this:DECLARE
      V_CRT VARCHAR2(13);You can give it a default value if you want to.DECLARE
      V_CRT VARCHAR2(13) := 'Hello';Looks like you want it to be a carriage return character.DECLARE
      V_CRT VARCHAR2(1) := CHR(13);

  • SQL Developer Oracle Database 11g XE error

    Hi,
    I'm trying to create a new connection in SQL Developer Version 3.2.20.09 to Oracle Database 11g XE but I keep on encountering the error "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection".
    I type the commands below in command prompt.
    lsnrctl stop
    lsnrctl start
    lsnrctl status
    lsnrctl service
    set
    Below are the results in Command Prompt:
    C:\Users\paul.john.s.calzado>lsnrctl stop
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2013 17:58
    :52
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting 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
    TNS-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 05-APR-2013 17:58
    :57
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNS-12560: TNS:protocol adapter error
    TNS-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 05-APR-2013 17:59
    :01
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting 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
    TNS-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 05-APR-2013 17:59
    :05
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting 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
    TNS-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=C:\Users\paul.john.s.calzado\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=MW74Q2YZ4X4F09
    ComSpec=C:\windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\paul.john.s.calzado
    LOCALAPPDATA=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;.BAT;.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=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SESSIONNAME=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-491d-B8AC-179A1FE1BE77
    USERDNSDOMAIN=DIR.SVC.ACCENTURE.COM
    USERDOMAIN=DIR
    USERNAME=paul.john.s.calzado
    USERPROFILE=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>
    Below is the ping results as well:
    C:\Users\paul.john.s.calzado>ping localhost
    Pinging MW74Q2YZ4X4F09.dir.svc.accenture.com [127.0.0.1] with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Users\paul.john.s.calzado>tnsping localhost
    TNS 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.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
    COL=TCP)(HOST=127.0.0.1)(PORT=1521)))
    TNS-12541: TNS:no listener

    JP wrote:
    I type the commands below in command prompt.Use the View local services control panel to start the XETNSListener service, if command line is not working for you.
    >
    lsnrctl stop
    lsnrctl startThose two cmmands, on any recent Win variants, needs a elevated privs command prompt i.e started with Run as administrator...
    to avoid below error.
    C:\Users\paul.john.s.calzado>lsnrctl start
    Starting tnslsnr: please wait...
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
    COL=TCP)(HOST=127.0.0.1)(PORT=1521)))
    TNS-12541: TNS:no listenerAs long as you have "no listener", you can't expect to connect from SQL Developer or any other client.

  • Oracle SQL Developer Connection Help

    Hi,
    I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
    I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
    "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
    I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
    Thanks!

    933874 wrote:
    Hi,
    I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
    I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
    "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
    I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
    Thanks!If you have SQL Developer installed & need to connect to some Oracle DB,
    then you do NOT need Oracle client.
    FWIW - SQL Developer is written in Java & uses JDBC (thin) to connect to the DB
    Is the DB Server on a subnet local to your system?

  • Want commands running in the back ground in sql developer

    HI all,
    I am new user to oracle sql developer. i started using it and found interseting. It is very easy just using the GUI interfaces. what ever i need to do i can do using the GUI interfaces instead of using commnads. makes my work easier. BUt there starts my concern
    if i continue to use the tools one day i will not know the commands which are executed actually.
    Is there any way throught which i can look what every that commands or queries that are executed in the back ground for my instruction in the foreground

    Hi,
    If you truly wish to see all the SQL and PL/SQL executed for a given connection, you can try the following:
    1. Tools -> Monitor Sessions...
    2. Select a connection for a user with appropriate privileges (e.g., must be able to run DBMS_MONITOR)
    3. In the list of sessions, right-click on a session of interest, select Trace Session and click Apply
    4. After completing the desired activity on the connection of interest, close the connection.
    5. Open the trace file in SQL Developer (File -> Open, or drag and drop it) -- make sure the Filter drop-down is set to All -- to see the SQL.
    6. Pick one of the four tabbed views of the trace file data: List, Tree, Statistics, History
    Step 5 is easy if the DB is local. For example, with Oracle 10g Xe on Windows, look for the most recent trc file in a directory like
    C:\oraclexe\app\oracle\admin\XE\udumpFor a remote DB you would need to copy the trc onto a shared network drive or ftp it to your local machine.
    If you just wish to see DDL commands as you manipulate DB object definitions from the Connection Navigator tree or the Object Viewer Actions list, the UI usually provides a SQL tab so that you may view the SQL before clicking the Apply button.
    Hope this helps,
    Gary
    SQL Developer Team

Maybe you are looking for

  • Accessing MyClass in a JSP?

    I have some classes that I've put in a jar file, samp.jar Where should I put this jar file if I should be able to use the classes in it? I have not packaged the classes... I just have them archived in samp.jar Also, where is a packaged class to be pu

  • Getting SQL Server Agent running

    I am trying to get my SQL Server Agent running, and no conventional means thus far have worked. I set it to run automatically in the Services window of the Control Panel. Attempting to run it from there yields the error "The SQL Server Agent (BENTLEY

  • 10.4 Disables Internet on network

    I installed 10.4 earlier today and was surfing the internet without any trouble. Then had to shut down for a while. When I started up again, no computers on my home network including this one (with Tiger) could access the internet. I restarted again

  • Images in table

    I am very new to designing websites. I have created a home page using tables to seperate the elements. Basically I have created three columns. In the first column is the navigation bar. The second column has a graphic and the third column has a neste

  • Why did I get my brother's contacts when I downloaded ios6?

    why did I get my brother's contacts when I downloaded ios6?