SQL+ not working: TNS-12560

I just installed XE on WXP and although the web interface works fine I can't use SQL+
Below is some information. This is very frustrating. I am an application developer; I switched from the full 10g to XE in the hope that I would no longer be wasting my time on those exasperating network problems and would be able to concentrater on developing instead but no such luck... Why is it asking too much that XE should work properly after installation? I have not changed anything beyond creating a couple of user accounts with the web interface. This is as virgin an installation as it gets.
Any help would be greatly appreciated.
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAR-2006 03:58
:14
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 23-MAR-2006 03:22:46
Uptime 4 days 23 hr. 35 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wk1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>lsnrctl services
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAR-2006 03:59
:22
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:18 refused:0 current:18 max:1002 state:ready
DISPATCHER <machine: WK1, pid: 9740>
(ADDRESS=(PROTOCOL=tcp)(HOST=wk1)(PORT=1729))
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>tnsping xe
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAR-2
006 04:18:03
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = wk1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (3750 msec)
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>sqlplus system/orcl as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 28 04:00:49 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
[killed with Ctrl-C]
===============================================================
sqlnet.log is full of entries like this, one for each attempt:
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleorcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=WK1)(USER=Privileged))))
VERSION INFORMATION:
     TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
     Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Time: 28-MAR-2006 03:32:14
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 2
nt OS err code: 0
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>type ..\network\ADMIN\sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>type ..\network\ADMIN\listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = wk1)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
===============================================================
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>type ..\network\ADMIN\tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = wk1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
C:\oraclexe\app\oracle\product\10.2.0\server\BIN>
===============================================================
The service called OracleXETNSListener is definitely running. Also, there is a firewall running on this box but its log does not report any blocked connection attempt from any Oracle-related process. I have allowed tnsping.exe, tnslsnr.exe and oracle.exe.

Thanks a lot! That was indeed the problem: if I do 'sqlplus sys@xe as sysdba' I can
connect. Trying to find where that orcl comes from, I did have ORACLE_SID set to orcl
in my environment and I removed it; that did it: sqlplus can now connect even if I do not
set the connect id. Maybe the installer could be enhanced to look for leftover Oracle-
related env vars?
However there is still some weirdness: the above refers to the sqlplus that comes with
the server bundle but if I use the sqlplus from the client bundle I get "ORA-12154:
TNS:could not resolve the connect identifier specified" when I specify the connect id
and "ORA-12560: TNS:protocol adapter error" when I don't. sqlnet.log shows it is still
using orcl as the SID. I don't really need the client anyway: only the jdbc jar, so I
could just remove it but this is just weird...

Similar Messages

  • Working in Sql, not working in Stored procedure

    Dear friends,
    I am puzzled about this strange working of Oracle , although I know that there is some problem with my code. I paste my code here. The delete statement is working properly in SQL Plus 8.0, but it is not working when I call this stored procedure from the Form.
    FUNCTION delete_record_treaty (
    p_treaty_id T_RIN_TREATY_MST.TRTY_ID_GV%TYPE, p_value VARCHAR2,p_block VARCHAR2 )
    RETURN BOOLEAN IS
    v_treaty_type varchar2(5);
    BEGIN
    v_treaty_type := substr(p_treaty_id,1,3);
    if p_block !='T_RIN_GRP_DTL' and p_block != 'T_RIN_XOLSLAB_DTL' and p_block!='T_RIN_PMTSCHD_DTL' then
    delete from T_RIN_TREATY_MST where TRTY_ID_GV=p_treaty_id ;
    commit;
    end if;
    if v_treaty_type = 'QTA' then
    delete from T_RIN_GRP_DTL where TRTY_ID_MV=p_treaty_id and T_RIN_GRP_DTL.ROWID = p_value;
    commit;
    elsif v_treaty_type = 'XOL' then
    delete from T_RIN_XOLSLAB_DTL where TRTY_ID_MV=p_treaty_id ;
    delete from T_RIN_PMTSCHD_DTL where TRTY_ID_MV=p_treaty_id ;
    elsif v_treaty_type = 'FAC' then
    delete from T_RIN_PMTSCHD_DTL where TRTY_ID_MV=p_treaty_id ;
    end if;
    RETURN(TRUE);
    END delete_record_treaty;
    Thanks in advance.
    All the paramaters that I pass, are correctly being passed to this stored procedure.
    null

    I solved it.One parameter I was passing it wrongly.
    Gee :D
    Subramanian V.

  • JDBC (SQL) not working in thread

    I was surprised by a strange (bug?)
    I had two programs that were implementing the Java Serial Port API, each interfaced to a specific instrument. I was asked to combine the two programs into one, run it on one workstation, and run it as a service. This is on an W2K machine and they want it to work even if no one is logged in.
    Well, I started each class as a serial port listener and a runnable, thinking it might be best for each listener to have its own thread. That runs just fine. But, one of the instruments sends a lot of data, so once I had a buffer full of stuff to parse and upload (to Oracle), is started another processing thread to handle the data, and let the parent thread get back to listening to the serial port.
    Well, I parsed the data just fine, but after I created the connection, created a statement, and then tried to execute a line of SQL, it just stopped, no exceptions, but no results. I keep a log of what is going on, and it looks like the thread just dies.
    So, for experimenation, I changed the parent threads back to plain classes and created the instances of them, still leaving the processing piece as a thread. (The only draw back to this is that I cannot transmit from both instruments at the same time.) Well, the SQL worked fine, so I am wondering if there is a problem with the JDBC and threads, or inner threads?
    Anyone have any suggestions?
    Thanks,

    As I understand it, your code does not work only when you run it as a service. Although I may well not understand it (for example I don't know what you think an "inner" thread is, and I don't understand your distinction between "class" and "thread", since everything runs in some thread or other in Java).
    Is this correct? Have you managed to get the original (single instrument) code running as a service? My guess is that there's nothing wrong with Java, but there is some issue with running it as a service.

  • WHY DOES THIS SQL NOT WORK

    I have 4 statements.
    echo off
    plus80 / @z:\nesp1483_batch
    plus80 / @z:\nesp1484a_batch
    exit
    The first statement plus80 / @z:\nesp1484_batch inserts records into a table and creates a report and deletes the table.
    However the second statement plus80 / @z:\nesp1484a_batch is not working properly. I want it to insert records into a table, create a report and then delete the table but it is not working properly. It is hanging up on this statement.
    I need to say plus80 to get the program to execute properly.
    I have also tried sqlplus /@z:\nesp1484a_batch but this does not work either.
    What do I need to do to make the third statement to execute properly?

    I know that it is not working
    because the response time is slow and I have over 15 minutes
    and nothing is happening. How do you know it is not working as opposed to just working slow?
    Do you have any logging routines in your code? If you have, switch on them on and see what's happening. If not, now is a good time to think about including them...
    Cheers, APC

  • SQL not working in Multiselect prompt

    Hi all,
    I have restricted the results in Multiselect Prompt by giving the sql query.It is working fine but when i try to search for particular record in Multiselect it is not filtering the results by applying the query instead it is using the base query with no restrictions.
    Please help.

    I understand and I don't understand... So you have a dashboard prompt set to multi-select, yes? You have changed "Show" to "SQL Results" and added your "active products" filter, yes? Now with the prompt and report in the dashboard, you click on the ellipsis of the prompt and for example, you change "Match" to "begins with," type "A" and click on "Go" which then displays all the values that begin with "A," yes?
    Now you select those "A" products and click on the left arrow to bring them to the left pane, yes? Then you click "Ok" which closes the window and click on "OK" one more time to run the prompt, yes?
    Now you are saying that the report filters "all the products that start with 'A' both active and inactive, yes? And this is what I don't understand. The report should be filtered by the specific "A" starting products you selected in the prompts, not "all 'A' starting values" regardless of whether they are active or inactive. If you have "Is Prompted" on the appropriate column, you should get only those values from the prompt, nothing more.
    How are you getting "all values that start with 'A'"? Please explain.

  • P/SQL Not Working in SQL Developer

    The following P/SQL seems to work fine in SQL Plus but does not run in SQL Developer
    insert /*+ append */ into upl_exclude_claims
    (select /*+ ordered parallel(s,4) parallel(claim,4) */
    /*+ use_hash(s,claim) no_index(claim, xbm_clm_recip) */
    s.recip,
    s.month_1st_day
    from lrx.upl s,
    mcd.fact claim;
    Thanks

    911105 wrote:
    The following P/SQL seems to work fine in SQL Plus but does not run in SQL Developer
    insert /*+ append */ into upl_exclude_claims
    (select /*+ ordered parallel(s,4) parallel(claim,4) */
    /*+ use_hash(s,claim) no_index(claim, xbm_clm_recip) */
    s.recip,
    s.month_1st_day
    from lrx.upl s,
    mcd.fact claim;
    ThanksWhat happens when you run it? Do you get an error or does nothing happen?
    If you get an error post the message
    Why didn't the first answer I did to this question post???

  • Embedded PL/SQL not working.

    I have my application running on apex 3.2 two days ago. But now i am not able to access the APEX using URL (http://korvac-salman.korvac-qb.com:8080/apex/f?p=4550:10:3318553606004853) for my application and (http://korvac-salman.korvac-qb.com:8080) for the Apex main page. I have also reinstalled the APEX on my machine again in 11.2 database on windows and still i am not able to access the URL http://korvac-salman.korvac-qb.com:8080. I am using embedded PL/SQL gateway and using port 8080 as see by the following query
    SALMAN11.LOCAL.COM$SYS> SELECT DBMS_XDB.GETHTTPPORT FROM DUAL;
    GETHTTPPORT
           8080Remember that this URL was running fine two days ago. What could have gone wrong and how to make my APEX work again?
    Thanks
    Salman

    All accounts related to APEX are open and unlocked
    USERNAME                       ACCOUNT_STATUS
    SYSTEM                         OPEN
    SYS                            OPEN
    APEX_PUBLIC_USER               OPEN
    RMAN                           OPEN
    APEX_030200                    OPEN
    ANONYMOUS                      OPEN
    FLOWS_FILES                    OPEN
    DBADMIN                        OPEN
    XS$NULL                        EXPIRED & LOCKED
    ORACLE_OCM                     EXPIRED & LOCKED
    DIP                            EXPIRED & LOCKED
    USERNAME                       ACCOUNT_STATUS
    OUTLN                          EXPIRED & LOCKED
    DBSNMP                         EXPIRED & LOCKED
    APPQOSSYS                      EXPIRED & LOCKED
    XDB                            EXPIRED & LOCKED
    CTXSYS                         EXPIRED & LOCKED
    MDSYS                          EXPIRED & LOCKED
    HR                             EXPIRED & LOCKED I can login using these users and i don't see any message of password expiry. One thing is that My computer is using dynamic IP from DHCP and does not have static IP, could this be an issue?
    Salman

  • SQL | not working anymore | BITMAP CONVERSION

    * I am a beginner at SQL tuning. Advise/pointers required *
    I have two similar schemas, A and B. Major difference is B has much more data than A.
    My query Q has always worked on both until last week.
    Note: I have no BITMAP index in both schemas
    Query Q does not return result on schema B any more, it taking over 1 hour, still no result.
    I have studies the explain for query Q on both schema and notice that they are very different.
    Major difference is I see, there are too many ‘BITMAP CONVERSION FROM ROWIDS’ on schema B. e.g. below
    | 15 | NESTED LOOPS | | 4483 | 227K| 1162 |
    |* 16 | INDEX RANGE SCAN | COMPM_ELE_PERF1 | 4483 | 80694 | 22 |
    | 17 | BITMAP CONVERSION TO ROWIDS | | | | |
    | 18 | BITMAP AND | | | | |
    | 19 | BITMAP CONVERSION FROM ROWIDS| | | | |
    |* 20 | INDEX RANGE SCAN | TABLE_A_ROOT_X3 | 1 | | |
    | 21 | BITMAP CONVERSION FROM ROWIDS| | | | |
    |* 22 | INDEX RANGE SCAN | TABLE_A_ROOT_X1 | 1 | | 537 |
    What is the best fix:
    •     Rewrite the Query (advise)
    •     Add hints (please provide sample code)
    •     Change db config (please provide any know config change)
    Thanks

    I believe you have B Tree indexes and that the optimiser is choosing a plan which will convert the rows from B Tree form into Bitmap form such that it can perform an AND operation to get the required results...so you don't physically have bitmap indexes but its kind of creating them in memory on the fly by using the content of the B Tree indexes.
    Without much more information as to the plan and statistics on the tables/indexes/init.ora settings etc... I can't advise why its choosing this plan or why this plan takes so long....lets start with asking what has changed since it last ran quickly ? That's likely to be the problem.
    If you want to rule out the indexes as per the previous post then just use a hint (NO_INDEX) and the FULL hints on the tables....
    More information please....
    Cheers
    Jeff

  • SQL not working in 10.2.0.3

    The following select statement works fine in Oracle 9.2.0.8 and 10.2.0.1 versions , but it throws
    ORA-00904: T.A: invalid identifier error in Oracle 10.2.0.3 and Oracle 10.2.0.4 environments.
    SQL's:
    create table tmp (a varchar2(10));
    insert into tmp values ('outer_ref');
    commit;
    select * from tmp t where 'x'=(select 'x' from (select null from dual where 'outer_ref'=t.a));
    Other details:
    O/S : Windows XP Service Pack 3, 32 Bit.
    Database Installation : Enterprise edition
    We have some sql's in our application written in this manner.
    Is this a known issue or a bug in 10.2.0.3 ?
    Thanks.

    Take a look at [this |http://forums.oracle.com/forums/thread.jspa?messageID=2134151&#2134151] thread.
    Best regards
    Maxim

  • Not Like in SQL not working

    Trying to use not like in the following sql:
    select *
    from respondents
    where sample_id = 00000001
    and email not like '%cccp.org%';
    Right now, I'm getting back 51 rows, but 1/2 of the rows have the wrong domain in the email fields, and I need to filter all of the wrong ones, except cccp.org.
    There was a thread,
    NOT LIKE
    And I tried that, but not getting the correct results.
    thanks

    Given a simple table like:
    SQL> SELECT * FROM t;
    EMAIL
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected] WHERE email NOT LIKE '%cccp.org%' will return:
    SQL> SELECT email FROM t
      2  WHERE email NOT LIKE '%cccp.org%';
    EMAIL
    [email protected]
    [email protected]
    [email protected] is exactly what you asked for. However, this statement "1/2 of them have the wrong email domain, like .edu and .com email domains" seems to contradict the predicate. Do you really want something more like:
    SQL> SELECT email FROM t
      2  WHERE email LIKE '%cccp.org%';
    EMAIL
    [email protected]
    [email protected]
    [email protected]
    John

  • PL/SQL not working (error starting at line 1)

    Good day,
    I can't seem to get any PL/SQL commands to run in a SQL sheet. I am using SQL Developer with Oracle Express 11g and can run general SQL statements. Do I need to be running PL/SQL in a different form? I am copying the HR Schema Queries from here:
    http://www.srikanthtechnologies.com/oracle/dec9/hrqueries.html
    None of them are working and I'm guessing I need to change a setting.
    Thanks for your help,
    J

    I am just trying to assume what your problem may be..
    Use a "/" after your Declare-Begin-End Block and then place your cursor anywhere between your pl'sql block and hit "F9" from your SQL Developer.
    Things should get fine then.
    As far as your queries or blocks are concerned, I dont see any issues with them..

  • SQL not working as Concurrent Program

    Hi
    I have the following sql pl/sql script which when I run in TOAD, works fine and successfully updates the custom tables
    declare
    v_position_id number;
    v_curr_org_id number;
    v_new_org_id number;
    begin
    select pos.position_id
    into v_position_id
    from xxsac_all_positions_f pos
    where pos.name like '%'||'&1%'||'%'
    and pos.effective_end_date > sysdate;
    select curr_org.organization_id
    into v_curr_org_id
    from xxsac_all_organization_units curr_org
    where curr_org.name = '&2'
    and curr_org.date_to is null;
    select new_org.organization_id
    into v_new_org_id
    from xxsac_all_organization_units new_org
    where new_org.name = '&3'
    and new_org.date_to is null;
    update xxsac_all_positions_f
    set organization_id = v_new_org_id
    where position_id = v_position_id
    and organization_id = v_curr_org_id
    and effective_end_date > sysdate;
    update xxsac_all_assignments_f
    set organization_id = v_new_org_id
    where position_id = v_position_id
    and organization_id = v_curr_org_id
    and effective_end_date > sysdate;
    update xxsac_all_positions pos
    set organization_id = v_new_org_id
    where position_id = v_position_id
    and organization_id = v_curr_org_id
    and date_end is null;
    commit;
    end;
    However when I create a concurrent program with 3 parameters to run the script - while it runs successfully, it doesn't actually update any of the columns I'm trying to update.
    Any ideas?
    Thanks
    Martin

    Pl post details of OS, database and EBS versions.
    All code in EBS requires these two parameters - "errbuf out varchar2, retcode out varchar2"
    Creating a PL/SQL Concurrent Program in Oracle Applications [ID 73492.1]
    FAQ (Customization) [ID 105127.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=retcode+AND+errbuf&objID=c3&dateRange=all&userID=&numResults=15
    HTH
    Srini

  • SQL not working?

    Hi All,
       I've installed 4.7c IDES with Oracle as database on Server 2003. Problem is that, I'm not
    able to use SQL alone. When i start the SQL, it's not  accepting the "Username & Password".
    I'm entering the Username as SCOTT & Password: Tiger, it shows invalid password/loginid.
    Pls provide the solution.
    Thanks to All.
    MK

    Standart oracle user is "system" password is "manager" (or master password for your installation).
    Also you can connect to SQL (under SIDadm user) using
    sqlplus /nolog
    connect /as sysdba
    Regards.

  • Oracle SQL not working in Apex

    I have been given the following SQL statement by a supposed SQL DBA
    SELECT TOP 250 TRANS_CODE, TRANS_CASH_IN, Month([TRANS_DATE]) AS Transmonth, TRANS_COMMENT, TRANS_MACHINE_NO
    FROM TRANSACT
    WHERE (((Month([TRANS_DATE]))=Month(Now())) AND ((TRANS_COMMENT) Like "Dacom*") AND ((TRANS_MACHINE_NO)<>"7*"))
    ORDER BY TRANS_CASH_IN DESC;
    but when I try it in Apex I get
    ORA-00923: FROM keyword not found where expected
    Please tell me how I fix it.

    Hi,
    Dose the table[b] SGM_TRANSACT contains any value
    as POK04 for the column TRANS_TABLE_NAME
    . - Do reply
    Post ur table structure.
    Desc TRANS_TABLE_NAME;
                       Else try this
    SELECT
         SGM_TRANSACT.TRANS_CODE,
         SGM_TRANSACT.TRANS_CASH_IN,
         TO_CHAR(TRANS_DATE,'Month') AS Transmonth,
         SGM_TRANSACT.TRANS_COMMENT,
         SGM_TRANSACT.TRANS_TABLE_NAME
    FROM    SGM_TRANSACT
    WHERE  
            TO_CHAR(TRANS_DATE,'MM') = to_char(sysdate,'MM')
         AND SGM_TRANSACT.TRANS_COMMENT Like 'SGM%'
         AND  SGM_TRANSACT.TRANS_TABLE_NAME Not BETWEEN "AR15" And "AR20"
         And  SGM_TRANSACT.TRANS_TABLE_NAME Not BETWEEN "BJ17" And "BJ22"
         And  SGM_TRANSACT.TRANS_TABLE_NAME <>"BJ25"
         And  SGM_TRANSACT.TRANS_TABLE_NAME <>"BJ31"
         And  SGM_TRANSACT.TRANS_TABLE_NAME Not BETWEEN "PB02" And "PB05"
         And  SGM_TRANSACT.TRANS_TABLE_NAME <>"PB07"
    --     And  SGM_TRANSACT.TRANS_TABLE_NAME <>"POK04"   -- OR TRY THIS
    ORDER BY SGM_TRANSACT.TRANS_CASH_IN DESC;
    [/pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • AES_DECRYPT in sql not working?

    hi all ! I have this piece of code in my java servlet
    SELECT idPaciente, Nombres, Apellidos, DNI_NIF, Sexo, Nacimiento, tlf, tlf2, email," +
                    " Direccion, Ciudad, Provincia, CP, Canal, Prescriptor, Cobertura, Seguridad_Social, Alta," +
                    " Condicion, Responsable, Nombremp, NIFemp, Direccionemp, FormaPago, AES_DECRYPT(Cuenta,'text_key')," +
                    " Baja  FROM PACIENTE WHERE idPaciente=?And its telling me that Error: Column 'Cuenta' not found.
    If I test the same query filling the ? into values in mysql query browser it works, I dont know what Im missing, Im loading the correct table in the correct context. And the column exists...
    Any help is appreciated.

    Crossposted: [http://forums.devshed.com/java-help-9/column-not-found-using-aes-decrypt-580184.html]
    ~

Maybe you are looking for

  • Dent in MacBook Pro

    So apparently my boyfriend dropped my MacBook Pro and it put a dent in it. He wasn't aware when it happened and I didn't go to use it until today, when I noticed it. The laptop was open when it happened, so the lid is fine. The dent looks sort of lik

  • Explain plan for a sql statement

    Hi, I have a simple sql statement which has a cost of 122, cardinality 59 and CPU cost 1966777. Same sql statement written in another way (using a nested select in the 'from' clause), has a cost of 58, cardinality 24 but cpu cost is much higher 29078

  • Unix style commandos in perl script OEM agent 10.2.05

    Hi, Is it possible to execute unix style command's like ps on a Windows server? Looking at the perl scripts in $OEM_AGENT/sysman/emd/scripts I see unix style command's. Is OEM converting those command's to Windows equivalents? I've a perl script whic

  • Iphoto 11 weird rotation/color and crashes during editing?

    So,....Seemingly, everything is working fine, i upload photos from camera, organize them, make deletions and then begin to edit a few photos..... and then suddenly only a few minutes in to workflow...BAM!.... the current photo I am editing turns a da

  • FIREFOX HAS REJECTED MY EMail ADDRESS AS MY USER NAME WHY?

    Why cannot a User Name be the normal full E Mail Address?