Oracle Alter Session not working in CF9

Hello,
I'm trying to understand differences between CF5 and CF9 when I retrieve numbers and dates from an Oracle Database.
The code I ran on CF5 and CF9 servers :
<cfoutput>
<cftransaction>
<cfquery datasource="intranet">
alter session SET NLS_TERRITORY =  FRANCE
</cfquery>
<cfquery name="qry" datasource="intranet">
select
     TO_NUMBER(12345/10) as nbr,
     sysdate as dt,
     TO_CHAR(1234.56,'L99G999D99') as cur
from dual
</cfquery>
</cftransaction>
#qry.nbr#<br>
#qry.dt#<br>
#qry.cur#
</cfoutput>
I've got those outputs :
Result in CF5
Result in CF9
1234,5
01/12/09
¿1.234,56
1234.5
2009-12-01 19:16:04.0
¿1.234,56
The first two rows in CF5 display data in French format. That's not the same for CF9, the data are in American format.
Then I changed the NLS_TERRITORY parameter
alter session SET NLS_TERRITORY =  AMERICA
Result in CF5
Result in CF9
1234.5
01-DEC-09
$1,234.56
1234.5
2009-12-01 19:20:39.0
$1,234.56
The two first row haven't changed in CF9, it seems that the "alter session" has no effect on number and date format in query results. Is that a bug or am I misunderstanding something ?
Regards,
Maxime

Thank you for your reply.
I tried what you've suggested on the CF9 server.
The results are :
NLS_TERRITORY =
1) oracle JDBC database
2) oracle JDBC thin client
3) oracle JDBC-ODBC bridge
AMERICA
1234.5
2009-12-02 13:24:30.0
$1,234.56
1234.5
{ts '2009-12-02 00:00:00'}
$1,234.56
1234.5
2009-12-02 13:24:30.0
$1,234.56
FRANCE
1234.5
2009-12-02 13:29:53.0
¿1.234,56
1234.5
{ts '2009-12-02 00:00:00'}
¿1.234,56
1234.5
2009-12-02 13:29:53.0
¿1.234,56
The behavior is pretty much the same in the three differents ways to call the database. The only difference is on the date display using the Oracle JDBC thin client, which is another format from those I've already got.
Regards,
Maxime

Similar Messages

  • Telnet session not working in OEL -5

    Telnet session not working in OEL -5
    ==============================
    1. Installed xinetd and telnet-server packages on the box.
    2. Enabled the xinetd service.
    # service xinetd start
    # chkconfig xinetd on
    Telnet still not working. Please help.
    Lily.

    Re-ran the /etc/init.d/xinetd restart command. Telnet cannot connect and this is what I get:
    Unencrypted connection refused. Goodbye.
    Below is the telnet.cfg
    ==================
    # default: on
    # description: The telnet server serves telnet sessions; it uses \
    #     unencrypted username/password pairs for authentication.
    service telnet
         flags          = REUSE
         socket_type     = stream
         wait          = no
         user          = root
         server          = /usr/sbin/in.telnetd
         log_on_failure     += USERID
         disable          = no
    ===================

  • Why Oracle 8i is not Working with JDK 1.3

    Why Oracle 8i is not Working with JDK 1.3 by using JDBC.

    try this
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:"somedsn","scott","tiger");
    I am using this for Oracle, it is working for me.
    Uma
    Java Developer
    http://www.globalleafs.com

  • Option of 'Restore Last Session' not working. Is there any option to repair the 'Mozilla Firefox' without loosing History?

    Option of 'Restore Last Session' not working. Is there any option to repair the 'Mozilla Firefox' without loosing History?

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • Alter System Kill Session Not Working

    I'm not certain as to what the problem may be, but the following code does not work in that the session is not being disconnected.
    The attempt is to have this trigger kill a user's logon session if the user is attempting to run a program named 'ex_oc.exe'
    I've tested the code (getting the values back to the table as expected) and it appears to be working but it doesn't execute.
    I've also tried ''ALTER SYSTEM DISCONNECT SESSION'.
    Database is 11g.
    Any ideas?
    Thanks
    CREATE OR REPLACE TRIGGER SYS.DENY_MSB_TRIGGER_UPDATEDD
    AFTER LOGON ON Database
    DECLARE
    v_programname varchar2(64);
    v_logontime date;
    v_process varchar2(24);
    v_machine varchar2(64);
    v_sid number;
    v_serialnum number;
    v_username varchar2(30);
    v_stmt2run VARCHAR2(327);
    cur INTEGER;
    ret INTEGER;
    v_string VARCHAR2(500);
    BEGIN
    SELECT PROGRAM, PROCESS, MACHINE, SID, SERIAL#, USERNAME
    INTO v_programname, v_process, v_machine, v_sid, v_serialnum, v_username
    FROM V$SESSION
    WHERE PROGRAM = LOWER('ex_oc.exe');
    INSERT INTO SAUDIT.DENYMSB (PROGRAM, PROCESS, MACHINE, SID, SERIALNUM, USERNAME)
    VALUES (v_programname, v_process, v_machine, v_sid, v_serialnum, v_username );
    v_string := 'ALTER SYSTEM KILL SESSION' || CHR(39)||v_sid||','||v_serialnum|| CHR(39)||' IMMEDIATE';
    EXECUTE IMMEDIATE v_string;
    END;
    Edited by: user12451703 on Jan 14, 2010 8:57 AM
    Edited by: user12451703 on Jan 14, 2010 8:58 AM

    user12451703 wrote:
    I'm not trying to kill my own session.
    Trigger written by Sys and running it as a generic user.You completely misunderstand triggers. Same as SP/SF trigger is always executed in invoking session on behalf of trigger owner. Below is a slighly modified version of your trigger that does not allow user U1 to connect by killing user U1 session:
    SQL> connect scott as sysdba
    Enter password: *****
    Connected.
    SQL> CREATE OR REPLACE TRIGGER SYS.DENY_MSB_TRIGGER_UPDATEDD
    2 AFTER LOGON ON Database
    3 DECLARE
    4 v_programname varchar2(64);
    5 v_logontime date;
    6 v_process varchar2(24);
    7 v_machine varchar2(64);
    8 v_sid number;
    9 v_serialnum number;
    10 v_username varchar2(30);
    11 v_stmt2run VARCHAR2(327);
    12 cur INTEGER;
    13 ret INTEGER;
    14 v_string VARCHAR2(500);
    15 BEGIN
    16 SELECT PROGRAM, PROCESS, MACHINE, SID, SERIAL#, USERNAME
    17 INTO v_programname, v_process, v_machine, v_sid, v_serialnum, v_username
    18 FROM V$SESSION where username = 'U1';
    19 EXECUTE IMMEDIATE ('ALTER SYSTEM KILL SESSION ''' || v_sid || ',' || v_serialnum || '''');
    20 EXCEPTION
    21 WHEN OTHERS THEN
    22 RAISE_APPLICATION_ERROR(-20001, 'Execution of this program not allowed', TRUE);
    23 END;
    24 /
    Trigger created.
    SQL> create user u1 identified by u1
    2 /
    User created.
    SQL> grant create session to u1
    2 /
    Grant succeeded.
    SQL> connect u1/u1
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: Execution of this program not allowed
    ORA-06512: at line 20
    <font color=red size =2>ORA-00027: cannot kill current session</font>
    Warning: You are no longer connected to ORACLE.
    SQL>
    Also, user not that keen to change the name of the exe.Is cex_soc.exe client side executable? If so what prevents user from renaming it?
    SY.

  • Setting of "opening web pages from last session"not works when open next time

    In Options, setting to "open windows & tab pages from last time" does not work. I have tries several time but nothing happens. have written to you earlier also , please help

    ''setting to "open windows & tab pages from last time" does not work.''
    That would be very surprising but a change was made to Firefox 4 to always have the choice of going to History ("Alt+S") and choose "Restore previous session".
    With Firefox 5 coming out in a few days (June 21-22) you might try again then, if the solution the developers built in does not work for you. Do you know about pinning tabs ('''app-tabs''') they persist across sessions as a convenience -- if I really want to keep something permanently then I would bookmark such things as a group. Because they can be closed easily.

  • Oracle 11g XE not working with oracle BI publisher 10g after enabling ACL

    Hello,
    I previously work with oracle 10gXE and Oracle BI publisher 10g and it work fine. now i install oracle 11g XE and try to configure it with oracle Bi Publlisher, it show this error
    "ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1324 ORA-12570: TNS:packet reader failure" after runing the ACL package to neable network service.
    on the database.
    Please can any body tell be why this is not working. Tanx.

    You'll need to add the apex engine owner to the ACL (Access Control List). Depending on your version of apex the user name varies. i.e. 4.0 is APEX_040000
    See Joel's blog for info about the ACL and APEX.
    [http://joelkallman.blogspot.com/2010/10/application-express-network-acls-and.html]

  • Oracle & PHP/Apache not working togather for unicode (working individually)

    hi, i have oracle xe zend core for oracle installed.
    When i insert data through aplication express or oracle sql developer its perfect. Unicode can be inserted and viewed, but when I try to view same data through php script it display ??? signs only english character show properly.
    Seems the unicode enviourment issue with php/apache and oracle communication, as php pages display uniode correctly when not taking data from oracle. I need help
    I have gone through globlizing_oracle_php_applications.pdf and have enabled mbstring, also php charset is utf8 i also used 'AL32UTF8' in connection string.
    Also if someone can provide a small sample php script to insert or view unicode data.
    thanks

    root the php module seems to be not working as the
    displayed index.php was just text page. I tried with
    apache2 as well but the result was the same.I don't believe the apache included with Solaris 10 includes PHP support; you will probably have to re-compile it . See the README file in /etc/apache for the actual config of the distributed version.

  • Oracle equals_path condition NOT working with table and materialized view

    The user i am using is xdb with dba role.
    1.When i try to use the statement
    SELECT PATH FROM xdb.path_VIEW
    WHERE
    EQUALS_PATH(res, '/home/OE/PurchaseOrders/2002')=1
    the result is
    /home/OE/PurchaseOrders/2002
    2. When i drop the path_view and recreated it like materialized view with statement
    create MATERIALIZED view path_view as
    select /*+ ORDERED */ t2.path path, t.res res,
    xmltype.createxml(xdb.xdb_link_type(NULL, r2.xmldata.dispname, t.name,
    h.name, h.flags, h.parent_oid, h.child_oid),
    'http://xmlns.oracle.com/xdb/XDBStandard.xsd', 'LINK') link,
    t.resid
    from ( select xdb.all_path(9999) paths, value(p) res, p.sys_nc_oid$ resid,
    p.xmldata.dispname name
    from xdb.xdb$resource p
    where xdb.under_path(value(p), '/', 9999)=1 ) t,
    TABLE( cast (t.paths as xdb.path_array) ) t2,
    xdb.xdb$h_link h, xdb.xdb$resource r2
    where t2.parent_oid = h.parent_oid and t2.childname = h.name and
    t2.parent_oid = r2.sys_nc_oid$
    then the equals_path condition STOP working !!!
    3. The same experiment, but i recreate it like table
    create table path_view as .... using the rest of the statement ...
    Can someone help me to understand why equals_path is NOT working on table and materialized view !

    Thanks Jonah. I was under the impression that I already had it but seems like it has to be a direct priv - thru a role doesn't work.
    I granted the reqd privs and then it worked fine. Thx for your help!

  • Oracle 6i Report Not working

    Hi,
    I have a Oracle Apps - 6i Report works fine with one instance and the same report does not fetch any records in the other instance..
    Even its not printing the messages in the before report trigger, when i query from the backed it fetches records. This is really strange..
    Please any one help me on this.
    Thanks,
    Genoo

    It doesn't look like this has anything to do with Reports itself. You'd better ask this in the Oracle Apps forum.

  • Oracle 10g Client not working from Vista Business

    Hi,
    I have installed Oracle 10g Rel2 DB on my desktop (OS Vista Ultimate X64 bit) and try to connect from my new laptop (OS Vista business) after installing the client software which does not work, whereas I am able to connect to same database from my other laptop using Windows XP. The tnsnames.ora files on both laptops have the same contents. Moreover, the SQL Plus is also not working on the vista laptop, I mean when I try to login the window closes down itself it doesn't stay open even to give any error message. . . Any ideas would be a great help . . .thx

    Did you install the Vista specific Oracle client?
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204_winx64_vista_win2k8.html

  • OTN Oracle Database Downloads Not Working

    After agrgeeing to the T&C's none of the download links work.
    See this page for example:
    http://otn.oracle.com/software/products/oracle9i/htdocs/linuxsoft.html
    Specific Download not working:
    http://download.oracle.com/otn/linux/oracle9i/9202/ship_9202_ia64_lnx_Disk1.cpio.gz
    Regards,
    Andrew

    Seems to be fine. Try this link instead: http://otn.oracle.com/software/htdocs/devlic.html?http://download-west.oracle.com/otn/linux/oracle9i/9202/ship_9202_ia64_lnx_Disk1.cpio.gz
    OTN Team

  • In oracle vmware broadband not working

    Hi,
    I have installed Oracle VM ware 4.2.0 in my laptop ( having windows OS home basis 7 ) not able to connect broadband.
    In VM Ware installed Red Hat Linux.
    Please assist me where i can give Network setting correctly among Adapter 1 to 4.
    Thnks in Advance !
    Regards,
    Ramprakash Arun

    Rampraksh Arun wrote:
    In windows Tata photon data card, its working fine.
    If u ping with windows to Linux able to see the connectivity. Plbm is not able to ping to Linux to windows dude !Which means your networking is not configured correctly. We have provided suggestions. You have ignored that, still do not tell us HOW you have configured your virtual networking, do not show us any errors... so what do you expect us to do? Magically see via a crystal ball what the actual networking configuration is on your side?
    You: My car does not work!
    Us: Tell us what exactly does not work?
    You: My car still does not work!
    It is pointless to continue such a conversation.

  • OSX: Connecting to admin session not working anymore since 8.0.12

    Hey
    It seems to me that connecting to console session does not work anymore since the recent update to 8.0.12. Had no troubles before the update, now it does not connect to the console session but a normal one. Please fix this.
    Mac OSX 10.9.5, Apple Remote Desktop 8.0.12
    Cheers, Marcel.

    Hey Dharmesh,
    Thanks for your reply. I mixed up terms. I cannot connect to the "admin session", in my last message I used the term "console session", sorry about that. Connecting works, but it connects normally instead of the admin session. Checkbox
    "Connect to admin sesssion" is active.
    In the logs I found the following message. Not sure it's related to my problem.
    Cheers, 
    Marcel
    [2014-Dec-11 08:20:11] RDP (0): correlation id: 012580ec-dbe5-8db2-a2c0-1c58dfb00000
    [2014-Dec-11 08:20:11] RDP (0): Resolved 'replaced.host.name.com' to '1.2.3.4' using NameResolveMethod_DNS(1)
    [2014-Dec-11 08:20:11] RDP (0): Exception caught: Exception in file '../../librdp/itotlayer.cpp' at line 875
        User Message : Security negotiation Error: NotAllowed(2)
    [2014-Dec-11 08:20:11] RDP (0): correlation id: 012580ec-dbe5-8db2-a2c0-1c58dfb00000
    [2014-Dec-11 08:20:11] RDP (0): Resolved 'replaced.host.name' to '1.2.3.4' using NameResolveMethod_DNS(1)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2014-Dec-11 08:20:11] RDP (0): **** User ACCEPTED connection to basic security host
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolConnectingRDP(3)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolInactive(4)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolActive(5)
    [2014-Dec-11 08:20:40] RDP (0): Protocol state changed to: ProtocolInactive(4)
    [2014-Dec-11 08:20:40] RDP (0): Protocol state changed to: ProtocolActive(5)

  • Oracle Forms Demo Not working -- Attn. Oracle Customer Service

    Hi,
    I try to see Multiselect T-List Demo in the following page.It's not working.
    http://www.oracle.com/technology/sample_code/products/forms/index9i.html
    -Murali

    Hello,
    have you read the <ORACLE_HOME>\forms90\demos\multiselect\doc\multiselect90.html doc file ?
    this is a part of the content:
    "Enabling and Using the Multi-Select capabilities of the PJCBy default the enhanced TList continues to operate just like a normal TList, in order to enable the multi-select capability you must set a custom property on the item ENABLE_LIST_MULTISELECT to the string value 'true' e.g.
    SET_CUSTOM_PROPERTY('PJC.MULTISELECT_LIST',1,'ENABLE_LIST_MULTISELECT','true');"
    Francois

Maybe you are looking for