XE and 10g bug: small query terminates connection to database

The following query fails because it terminates the connection to the oracle database. This only occurs in 10g and Oracle XE. Below that query is the structure of the table and sql statements to populate the table.
I got this from a friend who tried to use 10g, but had to upgrade to Oracle 9 :-) I tested it with Oracle XE. Same problem with 10g and XE. We both use fully patched Windows XP professional. I tested the query in SQLplus.
greetings,
SELECT ID_LEVSVIKTPOT
FROM T_RISA_LEVSVIKTPOT
WHERE KRITISK_FORBRUKER = -1;
---- 8< data definition 8< ----
CREATE TABLE T_RISA_LEVSVIKTPOT
ID_LEVSVIKTPOT INTEGER DEFAULT 0 NOT NULL,
NAVN VARCHAR2(50 BYTE),
LT INTEGER DEFAULT 0,
GT INTEGER DEFAULT 0,
KRITISK_FORBRUKER INTEGER DEFAULT -1 NOT NULL
TABLESPACE USERS
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
NOMONITORING;
ALTER TABLE T_RISA_LEVSVIKTPOT ADD (
CHECK (Kritisk_Forbruker = 0 or Kritisk_Forbruker = -1),
PRIMARY KEY
(ID_LEVSVIKTPOT));
INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
KRITISK_FORBRUKER ) VALUES (
1, '< 10 MW', 10, 0, 0);
INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
KRITISK_FORBRUKER ) VALUES (
2, '10 - 1000 MV', 1000, 10, 0);
INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
KRITISK_FORBRUKER ) VALUES (
3, '> 1000 MV og/eller kritisk forbruker', -1, 1000, -1);
commit;

It worked fine for me:
SQL> conn faust/********
Connected.
SQL> SELECT ID_LEVSVIKTPOT
  2  FROM T_RISA_LEVSVIKTPOT
  3  WHERE KRITISK_FORBRUKER = -1;
FROM T_RISA_LEVSVIKTPOT
ERROR at line 2:
ORA-00942: table or view does not exist
SQL> CREATE TABLE T_RISA_LEVSVIKTPOT
  2  (
  3  ID_LEVSVIKTPOT INTEGER DEFAULT 0 NOT NULL,
  4  NAVN VARCHAR2(50 BYTE),
  5  LT INTEGER DEFAULT 0,
  6  GT INTEGER DEFAULT 0,
  7  KRITISK_FORBRUKER INTEGER DEFAULT -1 NOT NULL
  8  )
  9  TABLESPACE USERS
10  PCTUSED 0
11  PCTFREE 10
12  INITRANS 1
13  MAXTRANS 255
14  STORAGE (
15  INITIAL 64K
16  MINEXTENTS 1
17  MAXEXTENTS 2147483645
18  PCTINCREASE 0
19  BUFFER_POOL DEFAULT
20  )
21  LOGGING
22  NOCOMPRESS
23  NOCACHE
24  NOPARALLEL
25  NOMONITORING;
Table created.
SQL> ALTER TABLE T_RISA_LEVSVIKTPOT ADD (
  2  CHECK (Kritisk_Forbruker = 0 or Kritisk_Forbruker = -1),
  3  PRIMARY KEY
  4  (ID_LEVSVIKTPOT));
Table altered.
SQL> INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
  2  KRITISK_FORBRUKER ) VALUES (
  3  1, '< 10 MW', 10, 0, 0);
1 row created.
SQL> INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
  2  KRITISK_FORBRUKER ) VALUES (
  3  2, '10 - 1000 MV', 1000, 10, 0);
1 row created.
SQL> INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
  2  KRITISK_FORBRUKER ) VALUES (
  3  3, '> 1000 MV og/eller kritisk forbruker', -1, 1000, -1);
1 row created.
SQL> commit;
Commit complete.
SQL> select banner from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL>Cheers!

Similar Messages

  • 10G bug: Simple query terminate oracle session in 10g

    The following query fails because it terminates the connection to the oracle database. This only occurs in 10g and Oracle XE. Below that query is the structure of the table and sql statements to populate the table.
    I got this from a friend who tried to use 10g, but had to upgrade to Oracle 9 :-) I tested it with Oracle XE. Same problem with 10g and XE. We both use fully patched Windows XP professional.
    greetings
    SELECT ID_LEVSVIKTPOT
    FROM T_RISA_LEVSVIKTPOT
    WHERE KRITISK_FORBRUKER = -1;
    ---- 8< data definition 8< ----
    CREATE TABLE T_RISA_LEVSVIKTPOT
    ID_LEVSVIKTPOT INTEGER DEFAULT 0 NOT NULL,
    NAVN VARCHAR2(50 BYTE),
    LT INTEGER DEFAULT 0,
    GT INTEGER DEFAULT 0,
    KRITISK_FORBRUKER INTEGER DEFAULT -1 NOT NULL
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    NOMONITORING;
    ALTER TABLE T_RISA_LEVSVIKTPOT ADD (
    CHECK (Kritisk_Forbruker = 0 or Kritisk_Forbruker = -1),
    PRIMARY KEY
    (ID_LEVSVIKTPOT));
    INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
    KRITISK_FORBRUKER ) VALUES (
    1, '< 10 MW', 10, 0, 0);
    INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
    KRITISK_FORBRUKER ) VALUES (
    2, '10 - 1000 MV', 1000, 10, 0);
    INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
    KRITISK_FORBRUKER ) VALUES (
    3, '> 1000 MV og/eller kritisk forbruker', -1, 1000, -1);
    commit;

    Could not reproduce on my 10gR2 system. What error are you getting and is a trace file produced?
    test@ORCL> CREATE TABLE T_RISA_LEVSVIKTPOT
      2  (
      3  ID_LEVSVIKTPOT INTEGER DEFAULT 0 NOT NULL,
      4  NAVN VARCHAR2(50 BYTE),
      5  LT INTEGER DEFAULT 0,
      6  GT INTEGER DEFAULT 0,
      7  KRITISK_FORBRUKER INTEGER DEFAULT -1 NOT NULL
      8  )
      9  TABLESPACE USERS
    10  PCTUSED 0
    11  PCTFREE 10
    12  INITRANS 1
    13  MAXTRANS 255
    14  STORAGE (
    15  INITIAL 64K
    16  MINEXTENTS 1
    17  MAXEXTENTS 2147483645
    18  PCTINCREASE 0
    19  BUFFER_POOL DEFAULT
    20  )
    21  LOGGING
    22  NOCOMPRESS
    23  NOCACHE
    24  NOPARALLEL
    25  NOMONITORING;
    Table created.
    Elapsed: 00:00:00.35
    test@ORCL>
    test@ORCL> ALTER TABLE T_RISA_LEVSVIKTPOT ADD (
      2  CHECK (Kritisk_Forbruker = 0 or Kritisk_Forbruker = -1),
      3  PRIMARY KEY
      4  (ID_LEVSVIKTPOT));
    Table altered.
    Elapsed: 00:00:00.21
    test@ORCL> INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
      2  KRITISK_FORBRUKER ) VALUES (
      3  1, '< 10 MW', 10, 0, 0);
    1 row created.
    Elapsed: 00:00:00.01
    test@ORCL> INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
      2  KRITISK_FORBRUKER ) VALUES (
      3  2, '10 - 1000 MV', 1000, 10, 0);
    1 row created.
    Elapsed: 00:00:00.01
    test@ORCL> INSERT INTO T_RISA_LEVSVIKTPOT ( ID_LEVSVIKTPOT, NAVN, LT, GT,
      2  KRITISK_FORBRUKER ) VALUES (
      3  3, '> 1000 MV og/eller kritisk forbruker', -1, 1000, -1);
    1 row created.
    Elapsed: 00:00:00.00
    test@ORCL> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    test@ORCL> SELECT ID_LEVSVIKTPOT
      2  FROM T_RISA_LEVSVIKTPOT
      3  WHERE KRITISK_FORBRUKER = -1;
    ID_LEVSVIKTPOT
                 3
    Elapsed: 00:00:00.00
    test@ORCL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE    10.2.0.2.0      Production
    TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    Elapsed: 00:00:00.03
    test@ORCL>

  • Same query returns differenent result sets in oracle 9i and 10g

    Could anyone please clarify the issue i am having on a query. I have query that is returning around 2000 records in oracle db 9.2.0.8.0, at the same time with same data if run on 10.2.0.1.0 is returning only 12 records.
    what might be the reason for this descrepancy, is something in 9i is considered differently in 10g?
    Here is the query.
    SELECT
    0
    ,ot_req_head.rh_sys_id
    ,ot_req_head.rh_comp_code
    ,ot_req_head.rh_txn_code
    ,ot_req_head.rh_no
    ,ot_req_head.rh_appr_uid
    ,'Action to be taken' action
    ,ot_req_head.rh_appr_dt
    ,NULL AUTH_TO_UID
    ,NULL
    ,NULL
    ,NULL from_remarks
    ,NULL
    ,NULL
    ,'REQ'
    ,ot_req_head.rh_amd_no
    ,ot_req_head.rh_amd_dt
    ,ot_req_head.rh_cr_uid
    ,DECODE(ot_req_head.rh_charge_area_num,6,ot_req_head.rh_locn_code,1,ot_req_head.rh_charge_code,NULL)
    ,ot_req_head.rh_cr_dt
    ,NULL
    FROM
    orioni.om_txn_setup,
    orioni.ot_req_head,
    iscoit.isco_txn_auth,
    SELECT DISTINCT rh_sys_id
    FROM orioni.pending_mr
    )pending_mr
    WHERE
    ot_req_head.rh_txn_code=txns_txn_code
    AND
    auth_comp_code(+)=ot_req_head.rh_comp_code
    AND
    auth_action_to_type(+) IS NULL
    AND
    auth_head_sys_id(+)=ot_req_head.rh_sys_id
    AND
    auth_txn_code(+)=ot_req_head.rh_txn_code
    AND
    ot_req_head.rh_clo_status IS NULL
    AND
    ot_req_head.rh_comp_code='001'
    AND
    txns_txnp_code='PURREQ'
    AND
    txns_values='N'
    AND
    ot_req_head.rh_appr_status=3
    AND
    ot_req_head.rh_sys_id = pending_mr.rh_sys_id
    AND NOT EXISTS
    SELECT 'X'
    FROM
    iscoit.isco_txn_auth A
    WHERE
    a.auth_head_sys_id = isco_txn_auth.auth_head_sys_id
    AND
    a.auth_action_from_uid = ot_req_head.rh_appr_uid
    AND
    a.auth_action_from_type = 'Action to be taken'
    AND
    a.auth_action_from_dt = ot_req_head.rh_appr_dt
    AND
    NVL(a.auth_txn_amend_no,0) = NVL(ot_req_head.rh_amd_no,0)
    AND
    a.auth_action_to_type = 'REJECT'
    AND
    ot_req_head.rh_cr_dt > TO_DATE('16-MAR-2008','DD-MON-YYYY')
    Edited by: unus on Oct 19, 2009 3:56 AM
    Edited by: unus on Oct 19, 2009 4:18 AM

    Here's what I got on 9i and 10G:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> CREATE TABLE T_1(VAL1 NUMBER,VAL2 VARCHAR2(10));
    Table created.
    SQL> CREATE TABLE T_2(VAL1 NUMBER,VAL2 VARCHAR2(10));
    Table created.
    SQL> INSERT INTO T_1 VALUES(1,'FIRST');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(2,'SECOND');
    1 row created.
    SQL> INSERT INTO T_2 VALUES(1,'FIRST');
    1 row created.
    SQL> INSERT INTO T_2 VALUES(2,'SECOND');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(3,'THIRD');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(4,'FOURTH');
    1 row created.
    SQL> INSERT INTO T_1 VALUES(5,'FIFTH');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1;
         VAL1      VAL1
            1         1
            2         2
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+);
         VAL1      VAL1
            1         1
            2         2
            3
            4
            5
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+)
      4  AND
      5  NOT EXISTS (SELECT 'X' FROM t_2 C WHERE c.val1=b.val1);
         VAL1      VAL1
            3
            4
            5
    SQL> select name, value from v$parameter where name like '%optimizer%' or name like '%cursor_sharing
    NAME                                                             VALUE
    cursor_sharing                                                   EXACT
    optimizer_features_enable                                        9.2.0
    optimizer_mode                                                   CHOOSE
    optimizer_max_permutations                                       2000
    optimizer_index_cost_adj                                         100
    optimizer_index_caching                                          0
    optimizer_dynamic_sampling                                       1
    -- 10G
    Verbonden met:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1;
          VAL1       VAL1
             1          1
             2          2
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+);
          VAL1       VAL1
             1          1
             2          2
             5
             4
             3
    SQL> SELECT A.VAL1,B.VAL1 FROM
      2  T_1 A,T_2 B
      3  WHERE A.VAL1=B.VAL1(+)
      4  AND
      5  NOT EXISTS (SELECT 'X' FROM t_2 C WHERE c.val1=b.val1);
          VAL1       VAL1
             3
             4
             5( Please use the tag before and after your example, so we're sure we're looking at your complete example )                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Query using Materalized view in oracle 9i and 10g

    Hello
    There are snapshots (materialized view) used in my application. We have recently migrated from 9i to 10g release 2 database.
    After migration i have observed explain plan of query which is using materialized view and i found in 9i oracle treating materalized view as table. In 10g oracle is considerting it as MVIEW only (MAT_VIEW ACCESS BY INDEX ROWID). However in 10g cost of query which is using materialized view is much higher than 9i. And execution time is also random.
    Can anbody pls. expalin diff. of materalized view access in oracle 9i and 10g.
    Thanks

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • I have just used air display with macbook pro. i have disconnected now from apple tv. but my laptop screen is still very small like its connected to the tv. this means all the tabs and writing is very small, how do i full disconnect my laptop?

    i have just used air display with macbook pro. i have disconnected now from apple tv. but my laptop screen is still very small like its connected to the tv. this means all the tabs and writing is very small. like the display down the bottom where al the applications are, is n the middle of the page and not spread down the bottom. this is seriously annoying! all the writing is every small and the tabs are small and its hard to read.  the air display link has disappeared from my computer. but the laptop screen is still very small. i want to know how do i get rid of this and return my macbook screen to its normal size. thank you

    Hello chrispyw,
    If your content is still being displayed incorrectly, I would check the resolution setting for the built in display with this article:
    OS X Yosemite: Adjust your display’s resolution
    If it keeps happening whenever you use AirPlay then I would use this section of the following article to reset the display system:
    Apple computers: Troubleshooting issues with video on internal or external displays
    Reset the system
    You can reset the Mac's parameter RAM and SMC.Reset the resolution
    Start by resetting the Mac's parameter RAM. If the display does not come up, was previously set to an unsupported resolution, and still results in no video:
    Start up in Safe Mode.
    From the Apple () menu, choose System Preferences.
    Choose Displays from the View menu to open the preferences pane.
    Select any resolution and refresh rate that your display supports.
    Restart your computer.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Query for oracle 9i and 10g on same box

    HI
    All,
    I have oracle 9i installed on one box it has
    oracle home /u01/app/oracle/product/9.2.0
    and i am gonna install oracle 10g on different home /u01/app/oracle/product/10.2.0
    Do I need to specify different location for OraInventory?
    so what else I need to take care?
    Thanks,
    Vishal

    So there should not be a problem if it is the same
    orainventory location for both 9i and 10g right.There should be no problem.
    can you throw more focus on below ?
    When managing different oracle versions on the same
    box you should take care of environment variables to
    properly point to each ORACLE HOME and PATH, and
    ensure different ports do not conflict.
    For instance, you should use the Listener of the latest release on the server (in this case 10g) to services all the databases on that box 9both 9i and 10g).
    When you want to startup and shutdown 9i database, you do not want to shutdown a 10g database by mistake. Hence, setting things like ORCLE_HOME and ORACLE_SID.
    Also, Oracle Server make use of libraries. You do not want to mix up 9i and 10g libraries. hence take care when you set things like PATH, LD_LIBRARY_PATH etc
    The same applies to all Environment variables you want to set on the server that has different oracle releases. You just need to ensure that when you logon, your variables are set correctly for the intended oracle release before you do anything.

  • Dense Rank and Object types (oracle 9i and 10g difference).

    Hi all,
    One of my queries in my procedure uses scalar subqueries and object types.
    The code works fine in 10g but not in 9i. Both Object types and Dense_rank used below are present in both 9i and 10g.
    The following is a part of a bigger query.. but this is what it comes down to when I zero in on the error.
    -- In both 9i and 10g...
    CREATE OR REPLACE TYPE t_audit_type as object(
       add_tms date,
       add_user_id varchar2(20),
       order member function match (t t_audit_type) return integer
    Type created.
    CREATE OR REPLACE TYPE BODY t_audit_type as
    order member function match   (t t_audit_type) return integer is
    begin
      if add_tms < t.add_tms then
         return -1;
      elsif add_tms > t.add_tms then
        return 1;
      else
        return 0;
      end if;
    end;
    end;
    Type body created.
    create table t ( x int, y date);
    insert into t values(1, sysdate);
    insert into t values(1, sysdate+1);
    commit;In Oracle 10g..
    select min(t_audit_type(x,y))
    keep (dense_rank first order by x) result
    from t;
    RESULT(ADD_TMS, ADD_USER_ID)
    T_AUDIT_TYPE('19-JAN-10', 'User2')In Oracle 9i....
    9i> select min(t_audit_type(x,y))
      2   keep (dense_rank first order by x) result
      3   from t;
    select min(t_audit_type(x,y))
    ERROR at line 1:
    ORA-03113: end-of-file on communication channelHave any of you seen this before..? The connection is always being terminated when I run this command.?!

    Thanks Dom for your reply.
    Here is the message I found in the trace file for the error.
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0000000100D72F84] [SIGSEGV] [Address not mapped to object] [0x000000018] [] []
    Current SQL statement for this session:
    select min(t_audit_type(x,y))
           keep(dense_rank first order by x)x
    from tI will look in metalink and see if this has been addressed before.
    Thanks...!

  • Cannot connect to database after installing 10g

    Hello friends at www.oracle.com ,
    after installing Oracle 10g, I am trying to use programs like SQL*Plus or Forms Builder. However, these programs are asking me for the host string, and:
    - I cannot simply ignore this question, because I cannot connect without this information.
    - But I don't know how I can configure a host string for local access.
    - And I don't know if there's already a default host string for me to use after installing Oracle 10g, because I have no practice in database configuration, since I'm a developer.
    Please help me.
    Best regards,
    Franklin Goncalves Jr.

    Hi ,
    Few pointers which may help you , but a small caveat all instructions pertaining to way we do internally in oracle , so there could be some mismatch at customer end , but more or less logic should be same , in case you can't any step revert back :
    1. When Db asks you for connect string essentially it asks for the complete description of the db to connect including :
    Db server machine name / ip - that can be resolved from your system if it's a remote server .
    Username , Password ,
    Db Instance Name - TnsAlias mentioned in TnsNames.ora .
    Now there are few Env. variables that you need to set before running / starting an oracle db instance .
    1. Oracle_Home - Essentially Oralce Installation directory .
    2. Oracle_sid - unique identifier for Oracle Instance .
    3. For OracleDb only set T_Work and TNS_ADMIN env. variables as %Oracle_Home%\work directory and place your Listener.ora file in that folder .
    4. Make your initial parameter file init<Oracle_Sid>.ora in %Oracle_Home%\database -- default location .
    5. Create Oracle Instance specific services to run on a Windows machine , essentially they will be two and default nomenclature is :
    Oracle Service - OracleService<Oracle_Sid>
    Listener Service - Oracle<oracle_sid>TnsListener
    Now in %Oracle_Home%\bin directory you have couple have tools to help you in whole process including lsnrctl.exe , tnsping.exe , sqlplus.exe .
    and onec you start oracle instance like this :
    SQlPlus "/as sysdba" -- OS Authentication
    --- Connected to Idle instance
    Sql> startup --> this will take default parameter file
    Check out dump location for log and trace files generated if enabled .
    Now client setting :
    1. This is the place where you need appropriate connect string with all components as mentioned above .
    Check out any good site for exact syntax , but you need to make sure regarding client you are using for e.g:
    ODP.Net , Java Driver etc .
    For Client few important settings :
    Execution directory should contain tnsnames.ora
    Create T_WORK and TNS_ADMIN for execution directory .
    check out for listener connectivity using :
    tnsping <TnsAlias>
    Imp -- Include all relevant stuff in System PATH for execution from anywhere .
    Once it connects tehn you can use appropriate username / password for connecting with appropriate connection string .
    Normally while installing oracle you would have set the username and password to be changed later .
    or otherwise onec you log in as sysdba, you can create new username/password and give it sysdba permissions .
    Also imp. thing for connecting from a remote system is having Sqlnet.ora authentication file in client's T_WORK and TNS_ADMIN .
    I hope it helps upto some extent .
    regards ,
    Mrinal

  • Dflt report in 6i and 10g

    Hi
    I am trying to get a tillslip to print correctly after converting from reports 6i to 10g. The problem i think is that the outputfile generated in the 6i version is diffrent from the output file in 10g. The 10g version looks similar to postscript while the 6i output file does not mean anything to me.
    If i open the 6i test.dflt file it looks something like: =c0c1c32R
    If i open the 10g test.dflt file it looks something like:
    %!PS-Adobe-3.0 %
    %Creator: Oracle Toolkit 2 for Motif 10.1.2.0.2 PRODUCTION
    Using the 6i output file i can print the tillslip correctly in both the 6i and 10g environments. Using the 10g output file all the char in the output file prints including the comments (the %!PS-Adobe-3.0 % bit also)
    Any ideas how to get the output file the same. All report settings (DESFOTMAT, DESTYPE, ...) are the same. The dflt.prt file only differs as follows:
    printer "dflt"
    height 66
    width 80
    after page control(L)
    return        ""  (this line in 6i file is: return        "M" )
    linefeed control(J)
    Any ideas will be helpfull. I have tried creating the report as a .rtf, .pdf and .ps file and all of them print with the code inside and not just the tillslip info.
    Thanks

    Hi
    I afound that the problem is that the app server does not know about the printer as it is connected to a users PC. Thus when using the dflt desformat it selects the default printer language of the App Server printer. This is the reason why the files are diffrent.
    If I understand everything the process should be:
    1 - Run the report from forms (on app server).
    2 - Write the report to a file on App Server and then transfer the file to the user PC.
    3 - Send file correct printer on the user PC.
    The problem still remains on how to create the correct file which can be send to the printer connected to the users PC as the driver of the correct printer is not known too the App Server. The printer still prints the file incorrectly as the file is not created using its drive as what the case was when running it in 6i.
    Setting the MODE to character (which will enable you to provide a .prt file if you had one to give) will not work as the report contains an image.
    Regards
    Edited by: hfp843 on Sep 17, 2008 2:28 AM

  • Image in 6i and 10g

    dear all
    i have form 6i with image item
    i was use database 9i
    in the table i define the column as blob
    there is no problem in database 9i
    but when i go to database 10g
    i cant query the data that have the image using the same form
    so how can i use forms 6i to view, or store image on database 10g

    i have the same problem and i read that patch 13 solve this problem put i installed that patch and still have the same
    any ideas
    Edited by: egyhamada on 14/04/2009 02:49 ص

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • MacBook Pro - Bluetooth and Speaker bug

    Hello,
    I've bought a new speaker (JBL Pulse) one day ago in order to use it like speaker for my Macbook pro.
    Here it is, I need to use a bluetooth connection if I want to use my JBL speaker. My bluetooth is able to see my speaker, so they are connected. Everything works fine but after 1min, I can't explain why but the connection between them is broken. And it does it every time.
    So first of all, I've tried other devices. My iphone is ok, my ipad is ok, I've tried with 2 other Macbook and everything works well. So I've concluded that the bug comes from my computer.
    I have a magic mouse so I thought that maybe my mouse could create some disruption. I have disconnected my mouse but the bug is still here.
    Then, I've called apple support.
    The guy told me to do many things like reboot the macbook and other stuff like that. At the end he told me to reinstall my OSX. So i did it and the bug is still here.
    Then I have even tried to delete the file inside my DD thinking that maybe it could help. but I have still the same problem.
    It's not the first time that I have some troubles with my bluetooth. Sometimes it happens that my magic mouse is disconnected while I'm using it. Or even sometimes when I try to click on the bluetooth icon it doesn't even answer. And I have to restart my computer.
    I'm a little bit frustrated because my macbook pro is in very good condition and it's a young one (almost one year). I don't have a lot of stuff inside.
    A friend tried to solve the problem but he thinks that the problem comes from my "network card".
    Thank you for your help and If you have any idea, do not hesitate Thanks
    I wanted to go to the apple store but still not open in my city... (frustrated again ^^) So I'm gonna call them Monday morning if I'm still without any solution

    I have the same problem with my older white Apple Wireless Extended Keyboard, which had been working fine with my 2009 iMac. But I experience the issue sporadically with my new Mac Mini. I've read reports of people resolving some BT issues by turning off "Allow Bluetooth devices to wake this computer" in the Advanced pane of the Bluetooth System Preferenes Pane.
    There are also people having the issue on iOS devices using various Apple BT keyboards. No help, but interesting to note that it's happening across various devices, keyboard models, and OSs.

  • I downloaded what's app and snap chat and it keeps coming up about connect to I tunes to turn on push notifications. I'm connected and turned them on but it still says I haven't when I have opened the app. Any ideas how to solve it?

    I downloaded what's app and snap chat and it keeps coming up about connect to I tunes to turn on push notifications. I'm connected and turned them on but it still says I haven't when I have opened the app. Any ideas how to solve it?

    Hey did anyone get back to you on what you can do? I'm having the same problem, it's bugging me! Lol

  • Small Query help

    small query i have data like below ,
    Month ProductNo CustomerNo     Units
    Jan 9001 1001-09 100
    jan 9002 1002-09 200
    jan 9003 1003-09 300
    jan 9001 ABCCustomer 400
    Jan 9002 1004-09 500
    for any record - if column - customerNo starts with numeric it has to show like CN_****** other wise the same name.
    Result should be
    Jan 9001 CN_1001-09 100
    jan 9002 CN_1002-09 200
    jan 9003 CN_1003-09 300
    jan 9001 ABCCustomer 400
    Jan 9002     CN_1004-09 500
    Can some one help to get the query

    Hi,
    try this,
    SQL>  select *from v$version;
    BANNER
    Personal Oracle Database 10g Release 10.1.0.2.0 - Production
    PL/SQL Release 10.1.0.2.0 - Production
    CORE    10.1.0.2.0      Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
      1  with t  as
      2  (select 'Jan' Month ,9001 ProductNo, '1001-09' CustomerNo, 100 Units from dual
      3  union all
      4  select 'jan', 9002 ,'1002-09', 200 from dual
      5  union all
      6  select 'jan', 9003, '1003-09', 300 from dual
      7  union all
      8  select 'jan', 9001, 'ABCCustomer', 400 from dual
      9  union all
    10  select 'Jan', 9002, '1004-09', 500  from dual)
    11  select  Month,ProductNo,(case when regexp_like(customerno,'^[[:digit:]]') then
    12   'CN_'||CustomerNo
    13  else
    14* CustomerNo end)cudtomer_no, units from t
    SQL> /
    MON  PRODUCTNO CUDTOMER_NO         UNITS
    Jan       9001 CN_1001-09            100
    jan       9002 CN_1002-09            200
    jan       9003 CN_1003-09            300
    jan       9001 ABCCustomer           400
    Jan       9002 CN_1004-09            500or
    regexp_like(customerno,'^[0-9]')or
    regexp_like(customerno,'^[0123456789]')Edited by: user291283 on Sep 12, 2009 8:22 AM
    Edited by: user291283 on Sep 12, 2009 9:24 AM

  • Oracle 10G on XP : Network Adapter Connection Issue

    Hi,
    I am trying to install an enterprise software which uses Oracle 10g database.
    I have installed the database, but installation of the enterprise software fails with the following error message.
    THROWABLE EVENT {Description=[Failed to create connection],
    Throwable=[java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
      oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
      oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
      oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
      oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:319)
      oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:344)
      oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:148)
      oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
      oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
    The listener name is "LISTENER" and Listner service name is OracleServiceBMCPDS.
    The listener is running.
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.2.0 - Production
    Start Date                10-JUL-2009 16:54:48
    Uptime                    0 days 0 hr. 38 min. 11 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\abc...\network\admin\listener.ora
    Listener Log File         C:\abc...\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1521)))
    Services Summary...
    Service "BMCPDS" has 1 instance(s).
      Instance "BMCPDS", status UNKNOWN, has 1 handler(s) for this service...
    Service "BMCPDS.corp.capgemini.com" has 1 instance(s).
      Instance "bmcpds", status READY, has 1 handler(s) for this service...
    Service "BMCPDS_XPT.corp.capgemini.com" has 1 instance(s).
      Instance "bmcpds", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I am not a DBA hence finding it hard to resolve the issue. Your help is highly appreciated.
    Edited by: user3533384 on Jul 10, 2009 6:12 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Are you talking about the Enterprise Manager Console provided by the oracle or some other enterprise software? If it is enterprise software then you need to the do the proper setting for network connection to database. Probably you will have to configure tnsname.ora and sqlnet.ora. Can you connect through SQL*Plus utility? Go to Run-->SQLPLUSW type in the username password and tnsnames entry for the database. See if you can connect. If not post us the error message.
    Regards.

Maybe you are looking for