Logon trigger setting nls_date_format over ridden by sql developer?

Problem: Developers are inserting a Date record into a varchar field. I can't change this process right now. Non-Date info is stored here also. Would require a code change.
To simplify this, I wanted to get all the developers to insert using the same 'nls_date_format'. I had hoped to be able to centralize this by having Oracle set it in the database. I tried this by setting the database nls_date_format and with a logon trigger.
See test below. Seems to be over ridden.
Test case is with SQL Developer. Noticed the same thing when developers use Websphere. I think we reduce the chance for errors, if I can handle this in the database. However, my nls_date_format settings are getting over ridden.
1. s et database parameter nls_date_format to YYYY-MM-DD HH24:MI:SS , this gets over riden by SQL Developer/Websphere
2. Created a trigger with an 'alter session', but this seems to get over ridden also.
Please see test case below:
Oracle 11.2.0.3
test logging: SQLPLUS locally on the unix server, then log in using SQL Developer which is installed on my laptop.
SQL Developer NLS_DATE_FORMAT : YYYY-MON-DD HH24:MI:SS , This is different for test purposes
I have auditing turned turned on to db,extended with 'audit all by 'user' by access;' for test purposes to get more info.
create table test (username varchar2(30),sid number,mytest varchar2(300),insert_date date);
create or replace
TRIGGER LOGINTRG
AFTER LOGON ON DATABASE
BEGIN
insert into test select user,   sys_context('USERENV','SID') ,value,sysdate from v$parameter where name = 'nls_date_format';
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD HH24:MI:SS''';
insert into test select user,   sys_context('USERENV','SID') ,value,sysdate from v$parameter where name = 'nls_date_format';
commit;
END LOGINTRG;
/Results/Questions
1. When I select from 'test', I confirm that my NLS_DATE_FORMAT is the same both before and after the alter session.
2. select value from v$parameter where name = 'nls_date_format'
output: YYYY-MON-DD HH24:MI:SS (so sql developer is over riding this);
3. select * from dba_audit_trail where username = 'MYUSER' order by timestamp desc;
The SQLs from the logon trigger are not captured. how do I capture logon trigger sqls? Not a huge deal, just curious
4. I do not see any alter sessions issued by my user. shouldn't audit all by access capture that? how could my session nls_date_format change without an alter session?
Edited by: Guess2 on Apr 22, 2013 10:44 AM

>
Problem: Developers are inserting a Date record into a varchar field.
>
No - they aren't. That is physically impossible. The only thing that can be stored in a 'varchar field' is a string. Oracle considers ANYTHING stored in a character column to be a string.
Date values are stored in DATE columns. Perhaps you meant that developers are converting DATE values to strings and then storing the string in a 'varchar field'?
>
I can't change this process right now. Non-Date info is stored here also.
>
WONDERFUL! Why use a column to stored just one type of data? That is extremely wasteful. Hopefully you store strings that represent numbers in that same column also? It makes the data model so much easier to understand if developers only need to learn one datatype.
>
Would require a code change.
>
The horror!
You should never, ever, EVER use a code change to fix a problem if there is even the slightest possibility that you can change the ENTIRE DATABASE instead.
I've got good news though. You are now on version Oracle 11.2.0.3 and Oracle, after months of protests by some of their largest clients, has finally dropped the exhorbitant license fees for using some of the more esoteric datatypes like DATE and NUMBER.
You should suggest to your manager that they use some of the license fee money saved to hire developers that already know how to design proper data models and use those new-fangled datatypes.
Trust me - once you've made it up that steep learning curve your code will have fewer of those pesky 'dirty data' issues to deal with.
Sure - it means less job security for your current developers. But sometimes you just have to 'take one for the team'!

Similar Messages

  • Logon Trigger setting NLS_SESSION_PARAMETERS not working

    Hello,
    I have a problem with a logon trigger setting session parameters:
    create or replace
    TRIGGER standard.after_logon_trg
    AFTER LOGON ON STANDARD.SCHEMA
    BEGIN
      DBMS_APPLICATION_INFO.set_module(USER, 'Initialized');
      EXECUTE IMMEDIATE ('ALTER SESSION SET current_schema=standard');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_DATE_LANGUAGE=''AMERICAN''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_TERRITORY=''AMERICA''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_TIMESTAMP_FORMAT=''HH24:mi:ss''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD''');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_COMP=LINGUISTIC');
      EXECUTE IMMEDIATE ('ALTER SESSION SET NLS_SORT=BINARY_CI');
      insert into standard.testcc (bezeichnung, datum) values ('logontrigger', SYSDATE);
    END;After I log in, the new row is added to the table, but the session parameters are completely untouched.
    select * from NLS_SESSION_PARAMETERS says:
    NLS_LANGUAGE     GERMAN
    NLS_TERRITORY     GERMANY
    NLS_CURRENCY     €
    NLS_ISO_CURRENCY     GERMANY
    NLS_NUMERIC_CHARACTERS     ,.
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD.MM.RR
    NLS_DATE_LANGUAGE     GERMAN
    NLS_SORT     GERMAN
    NLS_TIME_FORMAT     HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT     DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT     HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY     €
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSEIf I execute the ALTER SESSION statements in the sql console (as user standard) they work perfectly, so this seems to be no permission issue.
    Whats wrong with the trigger?
    Thanks and regards
    Christian
    Edited by: 853536 on 20.04.2011 00:31
    OK, I've traced the entire database, and found out that my parameters are overwritten. So after my trigger has been executed, the NLS Session parameters are altered, for example:
    =====================
    PARSING IN CURSOR #4 len=386 dep=0 uid=40 oct=3 lid=40 tim=4721509708 hv=302297662 ad='ab275c28'
    select parameter,value from nls_session_parameters
    union all SELECT 'DB_TIMEZONE' name, DBTIMEZONE  value FROM DUAL
    union all SELECT 'SESSION_TIMEZONE' name, SESSIONTIMEZONE value FROM DUAL
    union all SELECT 'SESSION_TIMEZONE_OFFSET' name, TZ_OFFSET(SESSIONTIMEZONE) value from DUAL
    union all SELECT parameter, value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET'
    END OF STMT
    PARSE #4:c=0,e=3962,p=0,cr=4,cu=0,mis=1,r=0,dep=0,og=1,tim=4721509705
    EXEC #4:c=0,e=21,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=4721509816
    FETCH #4:c=0,e=111,p=0,cr=0,cu=0,mis=0,r=10,dep=0,og=1,tim=4721509976
    FETCH #4:c=0,e=132,p=0,cr=0,cu=0,mis=0,r=10,dep=0,og=1,tim=4721510598
    FETCH #4:c=0,e=204,p=0,cr=3,cu=0,mis=0,r=1,dep=0,og=1,tim=4721511118
    STAT #4 id=1 cnt=21 pid=0 pos=1 obj=0 op='UNION-ALL  (cr=3 pr=0 pw=0 time=264 us)'
    STAT #4 id=2 cnt=17 pid=1 pos=1 obj=0 op='FIXED TABLE FULL X$NLS_PARAMETERS (cr=0 pr=0 pw=0 time=128 us)'
    STAT #4 id=3 cnt=1 pid=1 pos=2 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=1 us)'
    STAT #4 id=4 cnt=1 pid=1 pos=3 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=0 us)'
    STAT #4 id=5 cnt=1 pid=1 pos=4 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=1 us)'
    STAT #4 id=6 cnt=1 pid=1 pos=5 obj=96 op='TABLE ACCESS FULL PROPS$ (cr=3 pr=0 pw=0 time=194 us)'
    =====================
    PARSING IN CURSOR #3 len=41 dep=0 uid=40 oct=42 lid=40 tim=4721512239 hv=2321140216 ad='ab275184'
    alter session set NLS_TERRITORY='GERMANY'
    END OF STMT
    PARSE #3:c=0,e=329,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=4721512236
    EXEC #3:c=0,e=48,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=4721512424
    =====================
    PARSING IN CURSOR #2 len=35 dep=0 uid=40 oct=42 lid=40 tim=4721513208 hv=2785092162 ad='ab274e88'
    alter session set NLS_SORT='GERMAN'
    END OF STMT
    PARSE #2:c=0,e=283,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=4721513205
    EXEC #2:c=0,e=20,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=4721513370
    =====================
    ...This explains why they are overwritten, but I still don't know why the session parameters are altered after my trigger at all. Any idea?
    Edited by: 853536 on 20.04.2011 01:24
    Problem solved: I was using Oracle SQL Developer to edit my trigger and to try it - and SQL Developer seems to ovewrite the NLS_Session parameters. Duh.
    Edited by: 853536 on 20.04.2011 02:04

    Yes, SQL Developer will usually override the settings. It should not do this if you go to Tools->Preferences->Database->NLS and check "Skip NLS Settings".
    But, any program using JDBC OCI will also override most of the settings. Therefore, you should not rely on the database to fix the NLS settings. It is applications' job to prepare the NLS environment correctly (if the standard initialization based on the O/S settings and/or NLS_LANG is not satisfactory).
    -- Sergiusz

  • Create trigger not audited when run from sql developer Version 3.2.20.09

    Creating or editing a trigger is not being stored in the audit table when run from sql developer.
    Here is a sample script to show the issue:
    Grant Connect,create table,create trigger To testuser Identified By testuser;
    create table testuser.testtab(t1 number);
    Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
    CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
      Insert
          ON testuser.testtab FOR EACH ROW
    begin
      null;
    end;
    Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';
    drop user testuser cascade;
    If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
    If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
    If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
    If I edit the trigger from  All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.

    DoyleFreeman wrote:
    Not sure what you mean by "perform the audit".
    Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
    Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
    https://forums.oracle.com/community/developer/english/oracle_database/general_questions
    Yes - and it works just fine once you ENABLE AUDITING. Your scripIt  does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
    Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
    Have you read any of the extensive documentation about auditing to learn how to use it?
    See the Database Security Guide
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
    Also see 'Auditing Functions, Procedures, Packages, and Triggers
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
    And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    0
    audit create trigger by scott
    CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
      Insert
          ON emp_copy FOR EACH ROW
    begin
      null;
    end;
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    1

  • Logon trigger not working over DB-Link?

    Hi all,
    I have a serious question about accessing tables over a database link.
    I have three schema:
    DATA@SOURCE
    INTERFACE@SOURCE
    WORK@TARGET
    Schema DATA has one table called T1
    The INTERFACE schema has select privileges on all tables from DATA. Furthermore schema INTERFACE has a logon trigger to change the "current schema" to DATA:
    CREATE OR REPLACE TRIGGER TRG_A_LOGIN_SET_SCHEMA AFTER LOGON
    ON INTERFACE.SCHEMA
    BEGIN
    execute immediate 'ALTER SESSION SET CURRENT_SCHEMA = DATA';
    END;
    The WORK schema has a database link to the INTERFACE schema called INT_DB_LINK.
    I am now logged into schema WORK on the TARGET database and I am executing following statement:
    select a from T1@INT_DB_LINK
    -> it's working
    Next I execute
    declare
      cursor c is 
      select a
        from T1@INT_DB_LINK
       where rownum<2;
    begin
      for r in c loop
        null;
      end loop;
    end;
    This is not working. Error message is ORA-000942: table or view does not exist.
    But why?
    Can anyone help me?
    Thanks in advance
    Py

    Hi all,
    after a long, very long search I found what caused this strange behaviour.
    The ORA- Error was not raised by the SQL-Execution-Engine but by the SQL-Parser/SQL-Validation.
    As the second statement is an anonymous SQL block the Oracle Parser checks all objects dependencies before execution.
    This means a connection is established from TARGET to SOURCE checking if table T1 is available. The strange thing is
    that on this connection the "ALTER SESSION" trigger is not fired. So the parser does not find object T1 in schema INTERFACE.
    If I create an empty table T1 in INTERFACE the anonymous block gets parsed/validated and the statement is executed. But this
    time the block does a normal "connect session" and the trigger is fired. This means the statements accesses the T1 table in
    schema DATA. (But T1 in INTERFACE has to be existent that parse/validation works)
    I don't know if this is a bug or a feature.
    To workaround this I have created private synonyms in schema INTERFACE pointing to the objects in DATA.
    Thanks for your help!
    Py
    regarding the other qestion:
    Yes, permissions are granted over a role.

  • Setting up OID/LDAP with SQL Developer?

    I have over 100 databases to add to SQL Developer. I use OID and would like to allowd SQL Developer use that. How do I set it up? Parameter file somewhere?

    I have installed SQL Developer on my laptop (windows XP pro), and we have LDAP server and other database servers on unix. I have done following and is working for me using OID/LDAP 9.2.0.7.
    TO use OID based name resolution,
    copy ojdbc14.jar from ORACLE_HOME(10.x) /jdbc/lib (windows client)
    to /<SQL Developer home>/jdev/lib/patches
    Hope this helps.

  • Trigger information not showing up in SQL Developer

    I cannot get any "trigger" information to display in SQL Developer when I click on the "Triggers" tab for a table in which I KNOW has at least 1 DBA_TRIGGERS
    entry. Has anyone else experienced this ? Is this a bug ? I have the "patch 2"
    version installed. All other tabs give me output (e.g. Grants, Contraints, etc.).

    user524670,
    I'm sorry you feel we're not active on the forum, we're a small team ;-)
    There are a number of excellent responders on this forum and many questions have previous responses about bugs or ERs logged. Remember this is a community forum and I think it is doing exceedingly well as one.
    You can definitely log an SR with Support and ask them to give this priority. However, you'll have seen from earlier posts that the statement of direction for SQL Developer is now available. We do not plan to release a patch 3, as we are focused on release 1.1, due out in the next few months.
    Sue

  • OT(ish): crossing over to T-SQL development

    apologies for the off-topic, I've been into oracle development for a few years but am now looking at picking up some Sql server (development) skills.
    I'd assume there's a few people on here who work with both, or have done through their careers.
    So I was just wondering if anyone here has done this before, ie. spent years in Oracle then crossed over/picked up Sql Server. If so, have you got any...
    - books/websites you'd recommend
    - success / horror stories
    - advice on common pitfalls / things to watch out for / things I should find familiar?
    - etc?
    thanks in advance.
    Edited by: smon on Feb 18, 2010 1:24 AM

    smon wrote:
    ... am now looking at picking up some Sql server (development) skills.
    - books/websites you'd recommend
    Quite a few Microsoft MVPs have written books on SQL Server programming, T-SQL etc.
    - Kathi Kellenberger's book "Beginning T-SQL 2008" starts with installation of SQL Server Express and the basics of T-SQL. It's for guys who have absolutely no idea of where to start.
    - The Microsoft MSDN Library is very good, and should be an invaluable resource.
    - The 3 books by Itzik Ben-Gan are good too, for his lucid writing style and good depth of topics.
    - For the advanced, there is "SQL Server MVP Deep Dives" - an anthology of SQL Server topics written by 53 MVPs.
    The last chapter of Kathi's book is titled "Where to go next" and it lists down the websites, the forums, blogs etc. that provide a wealth of information on T-SQL and Sql Server. Or you may google "sql server websites".
    HTH,
    isotope
    Thought I should've mentioned Itzik's books:
    (1) Microsoft SQL Server 2008 T-SQL Fundamentals (PRO-Developer)
    (2) Inside Microsoft SQL Server 2008: T-SQL Querying
    (3) Inside Microsoft SQL Server 2008: T-SQL Programming
    You probably know the URL to MSDN, but anyway -
    http://msdn.microsoft.com/en-us/sqlserver/default.aspx
    Edited by: isotope on Feb 18, 2010 6:07 AM

  • Logon trigger

    Hi Expert,
    I am using below code for disabling user for from access through Management Studio:-
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TRIGGER [blocker]
    ON ALL SERVER 
    FOR LOGON
    AS
    BEGIN
    if app_name() = 'Microsoft SQL Server Management Studio' and  (original_login() = 'Test' or original_login() = 'Test1' or originial_login = 'Test3')
    Begin
    rollback transaction
    END
    End
    GO
    SET ANSI_NULLS OFF
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    DISABLE TRIGGER [blocker] ON ALL SERVER
    GO
    Same LoginID is used with other applications but I want to revoke access through SQL
    After enable it i see performance impact on my server.so please tell me where am i doing wrong.
    Thanks

    To start with, that trigger is not going to stop anyone from logging in from SSMS. The application name for a query window is "Microsoft SQL Server Management Studio - Query", or more precisely that is the default. The user can freely set any name
    he wishes on the tab Additional Connection Parameters, which you find through the option button. And why only prevent SSMS? What if they use SQLCMD? Old Query Analyzer? Excel?
    If you want users to only connect through the application, this requires some work with the application design.
    As for your question, without knowing anything about your system and not knowing what
    performance impact on my server means in more detail, it is not entirely easy to assess your question. But if your application frequently runs queries and uses the connect-run query-disconnect (but leave in pool) pattern which is the norm, I can see
    that the logon trigger can hurt.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Prompt For User Input in SQL Developer

    I am using the '&' in a very basic SQL select script, but I do not get a prompt for my input. However, i have used the '&' in update scripts and it does prompt me.
    For example:
    select DCC_DESCRIPTION
    from S_TBLDTMINOR
    where DCC_DTMINOR = &Minor;
    Gives an ORA-01008 error (not all variables bound).
    If it's a varchar field and I use '&Minor' - it executes with no error, but does not prompt for data. Please note:  this script works when it's run in SQL*Plus, but not in SQL Developer.
    If I execute:
    update S_TBLDTMINOR
    set DCC_DESCRIPTION = 'Mark & Wilson'
    where DCC_DTMINOR = 'AAA';
    It does prompt me for a value (but I do not want it to).
    So I know prompting works in SQL Developer, but it does not work in select statements.
    Is this a configuration setting I can change in SQL Developer? I know I can use the escape in the update statement to avoid the prompt, but I'm not concerned with that. I'm trying to get the prompting to work in the select statement.
    Edited by: user12289057 on Feb 23, 2012 11:17 AM

    Hi user12289057,
    1/Not sure what your testcase is (including table definition), I was trying to reproduce with:
    select * from dual where dummy = '&myin'
    2/Try
    undefine Minor
    to ensure Minor is not already set.
    3/Minor may need to be quoted if it is a string.
    Short blog post on substitution and bind variables.
    http://totierne.blogspot.com/2010/04/substitution-and-bind-variables.html
    -Turloch
    SQLDeveloper team.

  • Newbie to Oracle SQL Developer

    Hi guys, cheers for taking the time to read this post.....
    Im running a few different scripts in Oracle SQL Developer, one called CreateLocalSchema.sql, another CreateLocalProcedures,sql and a third SystemSetup.sql
    When I press f5 to run the Systemsetup.sql, im prompted to "enter the identifier of system". Does this mean the SID? Ive tried XE, my username (lbell),orcl.
    Not sure what to enter here. Im getting this error through most of the script output window.
    SQL Error: ORA-00904: "SYSTEMID": invalid identifier
    +00904. 00000 - "%s: invalid identifier+
    Do i need to do anything that i havent realised? Any help would be appreciated.
    Thanks

    Hi 899065      
    It depends on the script. You are being asked for input via substitution variable '&variablename' or '&&variablename' or via the accept command.
    set echo on
    before running the script will display the command before the output is printed. This may be reset within the script i.e. set echo off .
    Forum: SQL Developer *(Not for general SQL/PLSQL questions)*
    might be worth trying if the script works in sqlplus.
    -Turloch
    SQLDeveloper Team

  • Login to SQL Developer as the SYS user for Getting Started tutorial

    I went to try and do the following tutorial to learn about SQL Developer 3.0, but I cannot get started because I'm unable to perform Prerequisite #3.
    How do I "Login to SQL Developer as the SYS user"?
    Dave
    Getting Started with Oracle SQL Developer 3.0
    Prerequisites
    Before starting this tutorial, you should:
    1 .
    Install Oracle SQL Developer 3.0 from OTN. Follow the readme instructions here.
    2 .
    Install Oracle Database 11g with the Sample schema.
    3.
    Unlock the HR user. Login to SQL Developer as the SYS user and execute the following command:
    alter user hr identified by hr account unlock;
    Note: This tutorial is developed using Oracle SQL Developer 3.0.
    4 .
    Download and unzip the files.zip to a local folder on your file system. In this tutorial, we use the C:\sqldev3.0 folder.

    I installed XE. It asked me to set up a username and password during the install.
    How do I login as the SYS user, though?
    There is a Connection Name, Username, and Password field when I try to set up a connection in SQL Developer, and I used the username and password I made during the install. I clicked the Test button to test the connection.
    I see "Status: Failure -Test failed: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER".
    How do I tell SQL Developer "as SYSDBA or SYSOPER"?
    Sorry, this is probably easy, and I'm just clueless about it.

  • Help getting SQL Developer to work

    I'm just trying to get SQL Developer to work so I can use student databases. I have no intent of being a networker, and I definetly have no intent of failing this class because I can't do my homework.
    Update.
    Someone from my Java Class told me to restart the services related to Oracle. I attempted to do so, but got the following errors:
    http://img220.imageshack.us/img220/5087/clipboard01hq.jpg
    http://img27.imageshack.us/img27/32/clipboard02ro.jpg
    I believe the TNSListener service is the main problem (seeing as when I try to open the database I get an error saying "TNSListener service is not running.") So I looked that up, and it said to check sqlnet.log:
    Sat Jan 29 18:11:16 2011
    Create Relation ADR_CONTROL
    Create Relation INC_METER_IMPT_DEF
    Create Relation INC_METER_PK_IMPTS
    Directory does not exist for read/write [C:\app\Davidi\product\11.1.0\db_1\log] [C:\app\Davidi\product\11.1.0\db_1\log\diag\clients]
    Fatal NI connect error 12541, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\Install\sqldeveloper-2.1.1.64.45\sqldeveloper\sqldeveloper.exe)(HOST=THE-FALCON)(USER=Davidi))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.1.0.6.0 - Production
    Time: 29-JAN-2011 18:11:18
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener
    nt secondary err code: 61
    nt OS err code: 0
    Thu Feb 03 23:04:39 2011
    Directory does not exist for read/write [C:\app\Davidi\product\11.1.0\db_3\log] [C:\app\Davidi\product\11.1.0\db_3\log\diag]
    Fatal NI connect error 12541, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=The-Falcon)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=C:\Install\sqldeveloper-2.1.1.64.45\sqldeveloper\sqldeveloper.exe)(HOST=THE-FALCON)(USER=Davidi))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.1.0.6.0 - Production
    Time: 03-FEB-2011 23:04:41
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener
    nt secondary err code: 61
    nt OS err code: 0
    Thu Feb 03 23:08:05 2011
    Directory does not exist for read/write [C:\app\Davidi\product\11.1.0\db_3\log] [C:\app\Davidi\product\11.1.0\db_3\log\diag]
    Thu Feb 03 23:08:31 2011
    Directory does not exist for read/write [C:\app\Davidi\product\11.1.0\db_3\log] [C:\app\Davidi\product\11.1.0\db_3\log\diag]
    Thu Feb 03 23:09:36 2011
    Directory does not exist for read/write [C:\app\Davidi\product\11.1.0\db_3\log] [C:\app\Davidi\product\11.1.0\db_3\log\diag]
    And now I'm stuck again. Does anyone have any suggestions?

    Oh right. I did change the port in an attempt to get Scott to work.
    Changed back to port 1521, but still no luck.
    I think my problem has something to do with OracleDBConsoleorcl. I get Error Code 2 when I try to start that service up.
    Although...my SERVERNAME_SID is 192.168.15.101_orcl (Directory: C:\app\Davidi\product\11.1.0\db_1\192.168.15.101_orcl)
    Which was the IP Address ipconfig set up the day that SQL Developer was actually working. Of course, that IP Address changes every time you restart windows. My teacher suggested that I set up a static IP Address or try setting it to local host, but I really don't know how to do either of those.
    Any help would be appreciated.
    Thank you.

  • Why the Oracle SQL Developer show Chinese abnormally?

    In my Oracle SQL Developer I see Chinese convert to error code such as "��介�Ε⑼�〩� ".
    My Oracle chartset is "ZHT32EUC" and Oracle SQL Developer Code is "MS950" by default.
    How can I set the corresponding code set to "ZHT32EUC" in Oracle SQL Developer?

    Hi,
    Does the machine already has files for East Asian languages and/or complex scripts options in the Supplemental Language Support section of the Languages tab for the Regional and Language Options setting installed (for WinXP machine)?
    - limoey

  • Installing sql developer for a noob

    i am running windows 7 64 bit....i am very new to oracle and i am trying to install sql developer but it keeps asking for a java path ....when i navigate to the java folder there are no options to proceed.... please advise thanks

    You're better off asking over in the SQL Developer forum
    SQL Developer
    Evita

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

Maybe you are looking for

  • Image Capture no longer working with Samsung SCX-4500W

    Out of the blue, Image Capture is no longer working with my scanner (Samsung SCX-4500W). Until today, I have had no problems, but now Image Capture will only complete the "overview" but not the "scan" itself. I get the message that the "scanner repor

  • How to transfer the full contact details from my IPhone 3 G to my IPad 5?

    I installed Icloud on all devices, including my Windows PC, but in contacts only the email adresses are transferred, not the full adress and phone details. How can I transfer the complete data?

  • Swing?help me...

    1 how I build a link to url? I want to build a link in the panel.when click this link,open a IE window to the url,how? 2 how I build a combined shortcut keys? yes,now I have a textfiled,I hope when a user press"ALT+S",the words pressed can be send ou

  • Sync iPOD using itunes

    Hi, Can we choose not to update music on to the ipod via the internet? Can we be offline (to the internet) when updating the music from itunes (on windows) on to the ipod? I do not want a high phone bill. thanks!

  • Where to Find the IVR Integration Interface Spec/APIs

    We're developing a IVR client to talk to a PG and I'm having trouble finding documentation, libraries & sample code. We do have a older document 'ICM VRU interface specification 3.0c' and two include files but our developer is coming up short and nee