Equivalent keyword in Oracle for QUALIFY of Teradata

Hi,
In teradata database we can write a query like below :
select sls_doc_id, sls_dlvr_doc_id, rank() over (partition by sls_dlvr_doc_id order by sls_dlvr_doc_id) rn
from cdp_analysis.v_sls_dlvr_doc_dtl
QUALIFY rn > 1;
If I want to write an equivalent thing in Oracle then I can write an equivalent like below :
select sls_doc_id, sls_dlvr_doc_id
from
select sls_doc_id, sls_dlvr_doc_id, rank() over (partition by sls_dlvr_doc_id order by sls_dlvr_doc_id) rn
from cdp_analysis.v_sls_dlvr_doc_dtl
where rn > 1;
I just want to know is any keyword exist in Oracle which is equivalent to QUALIFY of Teradata?
Regards,
Koushik

Nope. There is no equivalent of QUALIFY in Oracle. Which is a shame, as having read up about it, I can see it would be useful to have. Ditto the ability to use expression aliases in GROUP BY clauses.
Cheers, APC
blog: http://radiofreetooting.blogspot.com

Similar Messages

  • Equivalent datatype in Oracle for datetime of SQL Server

    Hello Everyone,
    I'm very much new to Oracle. I have been working with SQL Server since 3yrs. Currently I'm working with Oracle 11g.
    What is the equivalent datatype in oracle for datetime in sql server with which has the format YYYY-MM-DD HH:MM:SS?
    I tried with timestamp and date which didnt solve my prob.... Please help me in using the equivalent datatype for the format provided above...
    Regards,
    Bhanu Yalamanchi.

    Oracle date format can be anything you want, either by default at the session level or preferably explicitly using to_char and a format mask.
    Format masks are documented here.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#CDEHIFJA
    SQL> create table t (d date);
    Table created.
    SQL> insert into t values (sysdate);
    1 row created.
    SQL> select * from t;
    D
    19-JUL-11
    SQL> alter session set nls_date_format = 'YYYY-MM-DD HH:MI:SS';
    Session altered.
    SQL> select * from t;
    D
    2011-07-19 08:27:59
    SQL> select d, to_char(d, 'YYYY-MM-DD'), to_char(d,'Day') from t;
    D                   TO_CHAR(D, TO_CHAR(D
    2011-07-19 08:27:59 2011-07-19 Tuesday
    SQL> alter session set nls_date_format = 'DD-MON-YY';
    Session altered.
    SQL> select d, to_char(d, 'YYYY-MM-DD HH24:MI:SS') from t;
    D         TO_CHAR(D,'YYYY-MM-
    19-JUL-11 2011-07-19 08:27:59

  • Equivalent parameter in Oracle for lock_timeout in db2

    Hello Guys,
    We are migrating from Db2 to Oracle database.
    I wanted to know what is the equivalent parameter in Oracle for lock_timeout in db2.
    Thanks in advance.

    I think there is no global prameter in Oracle, but you can determine a timeout for each statement or entire table
    select for update wait seconds
    Specify WAIT to instruct the database to wait integer seconds for the row to become available and then return control to you.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#SQLRF55372
    Or Lock table for entire table
    http://docs.oracle.com/cd/E18283_01/server.112/e17118/statements_9015.htm
    DB2 locktimeout - Lock timeout configuration parameter
    This parameter specifies the number of seconds that an application will wait to obtain a lock, helping avoid global deadlocks for applications.
    If you set this parameter to0, locks are not waited for. In this situation, if no lock is available at the time of the request, the application immediately receives a -911.
    If you set this parameter to
    -1
    , lock timeout detection is turned off. In this situation a lock will be waited for (if one is not available at the time of the request) until either of the following:
    The lock is granted
    A deadlock occurs.
    Note: The value you specify for this configuration parameter is not used to control lock timeouts for event monitor target tables. Event monitors use a separate, non-configurable setting that will cause locks on event monitor tables to time out.
    Recommendation: In a transaction processing (OLTP) environment, you can use an initial starting value of 30 seconds. In a query-only environment you could start with a higher value. In both cases, you should use benchmarking techniques to tune this parameter.
    http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.admin.doc%2Fdoc%2Fr0000329.htm
    Regards

  • Oracle ADF application with Teradata as Database

    JDeveloper PS5.
    Is it possible to integrate Oracle ADF application with Teradata as Database?
    If yes, can you please provide some information with respect to the same?
    Thanks,
    Navaneeth

    Does teradata have a JDBC driver ? and can it understand SQL92 falvor SQL ?
    If yes, then maybe you can do ADF on it.
    Take a look at this :
    http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html
    A bunch of ADF features will not be available, primary key generation will be a bit sketchy(all keys for all tables will come from a single sequence of numbers) and you'll have to implement some stuff like the persistence collection manager.
    The one thing that doc does not mention is that you also have to make sure your adf-config.xml is set with the correct 'jbo.SQLBuilder' property (SQL92) in the <amconfig-overrrides> section.
    Happy hacking !

  • ORA-22837: Relational hint or keyword is disallowed for user-level DML

    I got ORA-22837 when i use stream .
    I need some help!
    thanks!
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE     11.1.0.7.0     Production
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    SQL>
    SQL> select * from dba_apply_parameters where apply_name='APP002';
    APPLY_NAME PARAMETER VALUE SET_BY_USER
    APP002 PARALLELISM 1 NO
    APP002 STARTUP_SECONDS 0 NO
    APP002 TRACE_LEVEL 0 NO
    APP002 TIME_LIMIT INFINITE NO
    APP002 TRANSACTION_LIMIT INFINITE NO
    APP002 MAXIMUM_SCN INFINITE NO
    APP002 WRITE_ALERT_LOG Y NO
    APP002 DISABLE_ON_LIMIT N NO
    APP002 DISABLE_ON_ERROR N YES
    APP002 COMMIT_SERIALIZATION FULL NO
    APP002 ALLOW_DUPLICATE_ROWS N NO
    APP002 TXN_LCR_SPILL_THRESHOLD 10000 NO
    APP002 PRESERVE_ENCRYPTION Y NO
    APP002 RTRIM_ON_IMPLICIT_CONVERSION Y NO
    14 rows selected
    SQL>
    SQL> select * from dba_apply;
    APPLY_NAME QUEUE_NAME QUEUE_OWNER APPLY_CAPTURED RULE_SET_NAME RULE_SET_OWNER APPLY_USER APPLY_DATABASE_LINK APPLY_TAG DDL_HANDLER PRECOMMIT_HANDLER MESSAGE_HANDLER STATUS MAX_APPLIED_MESSAGE_NUMBER NEGATIVE_RULE_SET_NAME NEGATIVE_RULE_SET_OWNER STATUS_CHANGE_TIME ERROR_NUMBER ERROR_MESSAGE MESSAGE_DELIVERY_MODE
    APP002 DESTQUEUE3 STRADM YES RULESET$_50 STRADM STRADM 00 ENABLED 2009-8-19 11:21:21 CAPTURED
    SQL> select * from dba_apply_error;
    APPLY_NAME QUEUE_NAME QUEUE_OWNER LOCAL_TRANSACTION_ID SOURCE_DATABASE SOURCE_TRANSACTION_ID SOURCE_COMMIT_SCN MESSAGE_NUMBER ERROR_NUMBER ERROR_MESSAGE RECIPIENT_ID RECIPIENT_NAME MESSAGE_COUNT ERROR_CREATION_TIME
    APP002 DESTQUEUE3 STRADM 4.19.3785 NJORCL 5.22.8231 534128859 1 22837 ORA-22837: Relational hint or keyword is disallowed for user-level DML 129 STRADM 3 2009-8-19 10:46:42
    ORA-06512: at "STRADM.COLA_DATA_HANDLER", line 42
    ORA-06512: at line 1
    APP002 DESTQUEUE3 STRADM 7.30.3817 NJORCL 3.16.8370 534132743 1 22837 ORA-22837: Relational hint or keyword is disallowed for user-level DML 129 STRADM 3 2009-8-19 11:04:42
    ORA-06512: at "STRADM.COLA_DATA_HANDLER", line 42
    ORA-06512: at line 1
    APP002 DESTQUEUE3 STRADM 8.2.4944 NJORCL 1.32.6362 534133896 1 22837 ORA-22837: Relational hint or keyword is disallowed for user-level DML 129 STRADM 3 2009-8-19 11:07:44
    ORA-06512: at "STRADM.COLA_DATA_HANDLER", line 42
    ORA-06512: at line 1
    SQL> exec dbms_apply_adm.execute_error(local_transaction_id => '5.3.5003');
    begin dbms_apply_adm.execute_error(local_transaction_id => '5.3.5003'); end;
    ORA-22837: Relational hint or keyword is disallowed for user-level DML
    ORA-06512: 在 "STRADM.COLA_DATA_HANDLER", line 42
    ORA-06512: 在 line 1
    ORA-06512: 在 "SYS.DBMS_APPLY_ERROR", line 151
    ORA-06512: 在 "SYS.DBMS_APPLY_ERROR", line 265
    ORA-06512: 在 "SYS.DBMS_APPLY_ADM", line 467
    ORA-06512: 在 line 1

    Following parameters are deprecated in release 10.2.
    LOGMNR_MAX_PERSISTENT_SESSIONS
    MAX_COMMIT_PROPAGATION_DELAY
    REMOTE_ARCHIVE_ENABLE
    SERIAL_REUSE
    SQL_TRACE
    Check this in your parameter file.
    As per Oracle Errors Documents.
    Error : ORA-32004
    Cause:     One or more obsolete and/or parameters were specified in the
         SPFILE or the PFILE on the server side.
    Action:     See alert log for a list of parameters that are obsolete. or
         deprecated. Remove them from the SPFILE or the server side PFILE
    Regards,
    Sabdar Syed.

  • Equivalent application to Oracle RMS/ReSA by JD Edwards.

    Want to know if there is any Equivalent application to Oracle RMS/ReSA by JD Edwards.If yes , then in what format does the Log file been inputed to the application . Like For Example RMS/ReSA - oracle accepts Log files in RTLog Format.Is there any file format equivalent in JD Edwards.

    Just as an FYI, it would be helpful to explain what RMS is if you are posting to a forum like this. Probably 99.9% of the people in the JD Edwards world will have no clue at all what you are talking about. Let me ask this question - are you talking about JD Edwards World software or JD Edwards Enterprise One/One World? Or both? They are two different technical environments, so it does greatly matter which product you are dealing with. Since you posted in the JD Edwards World discussion, I will assume that is what you are talking about. No, there is not anything equivalent to Oracle RMS for JDE World. JDE World runs solely on the IBM AS/400 (or i5) using the IBM DB2/400 database. You can search the Oracle Technology network on phrase "Oracle RMS" to get more information on DB2 and relationship to other data sources. If you are dealing with Enterprise One/One World, then you should post this question in that forum. Hope this helps a bit.
    John Dickey

  • Equivalent application to Oracle RMS/ReSA by PeopleSoft

    Want to know if there is any Equivalent application to Oracle RMS/ReSA by PeopleSoft.If yes , then in what format does the Log file been inputed to the application . Like For Example RMS/ReSA - oracle accepts Log files in RTLog Format.Is there any file format equivalent in JD Edwards.

    Just as an FYI, it would be helpful to explain what RMS is if you are posting to a forum like this. Probably 99.9% of the people in the JD Edwards world will have no clue at all what you are talking about. Let me ask this question - are you talking about JD Edwards World software or JD Edwards Enterprise One/One World? Or both? They are two different technical environments, so it does greatly matter which product you are dealing with. Since you posted in the JD Edwards World discussion, I will assume that is what you are talking about. No, there is not anything equivalent to Oracle RMS for JDE World. JDE World runs solely on the IBM AS/400 (or i5) using the IBM DB2/400 database. You can search the Oracle Technology network on phrase "Oracle RMS" to get more information on DB2 and relationship to other data sources. If you are dealing with Enterprise One/One World, then you should post this question in that forum. Hope this helps a bit.
    John Dickey

  • Equivalent application to Oracle RMS/ReSA by Siebel

    Is there any Equivalent application to Oracle RMS/ReSA by Siebel.

    Just as an FYI, it would be helpful to explain what RMS is if you are posting to a forum like this. Probably 99.9% of the people in the JD Edwards world will have no clue at all what you are talking about. Let me ask this question - are you talking about JD Edwards World software or JD Edwards Enterprise One/One World? Or both? They are two different technical environments, so it does greatly matter which product you are dealing with. Since you posted in the JD Edwards World discussion, I will assume that is what you are talking about. No, there is not anything equivalent to Oracle RMS for JDE World. JDE World runs solely on the IBM AS/400 (or i5) using the IBM DB2/400 database. You can search the Oracle Technology network on phrase "Oracle RMS" to get more information on DB2 and relationship to other data sources. If you are dealing with Enterprise One/One World, then you should post this question in that forum. Hope this helps a bit.
    John Dickey

  • Is there an equivalent statement in Java for this PL/SQL stmt?

    Hi,
    I want to know if there is an equivalent statement
    in java for this PL/SQL statement:
    IF strTok IN('COM-1','COM-2','COM-3') Then
    /* Do Something */
    End If;
    I tried using : // This is giving me errors..
    if (strTok.equals(("COM-1") || ("COM-2") || ("COM-3") ) )
    /* Do Something */
    The above Java code is giving me errors.
    Any Help to reduce the number of steps for comparison
    is appreciated.
    thanks in adv
    Sharath

    Something like
    if (strTok.equals("COM-1") ||
        strTok.equals("COM-2") ||
        strTok.equals("COM-3") )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server ...

    Our setup is that we have two databases; a SQL Server 2008 database and an Oracle database (11g). I've got the oracle MTS stuff installed and the Oracle MTS Recovery Service is running. I have DTC configured to allow distributed transactions. All access to the Oracle tables takes place via views in the SQL Server database that go against Oracle tables in the linked server.
    (With regard to DTC config: Checked-> Network DTC Access, Allow Remote Clients, Allow Inbound, Allow Outbound, Mutual Authentication (tried all 3 options), Enable XA Transactions and Enable SNA LU 6.2 Transactions. DTC logs in as NT AUTHORITY\NetworkService)
    Our app is an ASP.NET MVC 4.0 app that calls into a number of WCF services to perform database work. Currently the web app and the WCF service share the same app pool (not sure if it's relevant, but just in case...)
    Some of our services are transactional, others are not.
    Each WCF service that is transactional has the following attribute on its interface:
    [ServiceContract(SessionMode=SessionMode.Required)]
    and the following attribute on the method signatures in the interface:
    [TransactionFlow(TransactionFlowOption.Allowed)]
    and the following attribute on every method implementations:
    [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
    In my data access layer, all the transactional methods are set up as follows:
    using (IDbConnection conn = DbTools.GetConnection(_configStr, _connStr))
    using (IDbCommand cmd = DbTools.GetCommand(conn, "SET XACT_ABORT ON"))
    cmd.ExecuteNonQuery();
    using (IDbCommand cmd = DbTools.GetCommand(conn, sql))
    ... Perform actual database work ...
    Services that are transactional call transactional DAL code. The idea was to keep the stuff that needs to be transactional (a few cases) separate from the stuff that doesn't need to be transactional (~95% of the cases).
    There ought not be cases where transactional and non-transactional WCF methods are called from within a transaction (though I haven't verified this and this may be the cause of my problems. I'm not sure, which is part of why I'm asking here.)
    As I mentioned before, in most cases, this all works fine.
    Periodically, and I cannot identify what initiates it, I start getting errors. And once they start, pretty much everything starts failing for a while. Eventually things start working again. Not sure why... This is all in a test environment with a single user.
    Sometimes the error is:
    Unable to start a nested transaction for OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME". A nested transaction was required because the XACT_ABORT option was set to OFF.
    This message, I'm guessing is happening when I have non-transactional stuff within transactions, as I'm not setting XACT_ABORT in the non-transactional code (that's totally doable, if that will fix my issue).
    Most often, however, the error is this:
    System.Data.SqlClient.SqlException (0x80131904): The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME" was unable to begin a distributed transaction.
    Now, originally we only had transactions on SQL Server tables and that all worked fine. It wasn't until we added transaction support for some of the Oracle tables that things started failing. I know the Oracle transactions work. And as I said, most of the time, everything is just hunky dorey and then sometimes it starts failing and keeps failing for a while until it decides to stop failing and then it all works again.
    I noticed that our transactions didn't seem to have a DistributedIdentifier set, so I added the EnsureDistributed() method from this blog post: http://www.make-awesome.com/2010/04/forcibly-creating-a-distributed-net-transaction/
    Instead of a hardcoded Guid (which seemed to cause a lot of problems), I have it generating a new Guid for each transaction and that seems to work, but it has not fixed my problem. I'm wondering if the lack of a DistribuedIdentifier is indicative of some other underlying problem. I've never dealt with an environment quite like this before, so I'm not sure what is "normal".
    I've also noticed that the DistributedIdentifier doesn't get passed to WCF. From the client, I have a DistributedIdentifier and a LocalIdentifier in Transaction.Current.TransactionInformation. In the WCF server, however there is only a LocalIdentifier set and it is a different Guid from the client side (which makes sense, but I would have expected the DistributedIdentifier to go across).
    So I changed the wait the code above works and instead, on the WCF side, I call a method that calls Transaction.Current.EnlistDurable() with the DummyEnlistmentNotification class from the link above (though with a unique Guid for each transaction instead of the hardcoded guid in the link). I now havea  DistributedIdentifier on the server-side, but it still doesn't fix the problem.
    It appears that when I'm in the midst of transactions failing, even after I shut down IIS, I'm unable to get the DTC service to shutdown and restart. If I go into Component Services and change the security settings, for example, and hit Apply or OK, after a bit of a wait I get a dialgo that says, "Failed ot restart the MS DTC serivce. Please examine the eventlog for further details."
    In the eventlog I get a series of events:
    1 (from MSDTC): "The MS DTC service is stopping"
    2 (From MSSQL$SQLEXPRESS): "The connection has been lost with Microsoft Distributed Transaction Coordinator (MS DTC). Recovery of any in-doubt distributed transactions
    involving Microsoft Distributed Transaction Coordinator (MS DTC) will begin once the connection is re-established. This is an informational
    message only. No user action is required."
    -- Folowed by these 3 identical messages
    3 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    4 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    5 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    6 (From MSDTC 2): MSDTC started with the following settings: Security Configuration (OFF = 0 and ON = 1):
    Allow Remote Administrator = 0,
    Network Clients = 1,
    Trasaction Manager Communication:
    Allow Inbound Transactions = 1,
    Allow Outbound Transactions = 1,
    Transaction Internet Protocol (TIP) = 0,
    Enable XA Transactions = 1,
    Enable SNA LU 6.2 Transactions = 1,
    MSDTC Communications Security = Mutual Authentication Required, Account = NT AUTHORITY\NetworkService,
    Firewall Exclusion Detected = 0
    Transaction Bridge Installed = 0
    Filtering Duplicate Events = 1
    This makes me wonder if there's something maybe holding a transaction open somewhere?

    The statement executed from the sql server. (Installed version sql server 2008 64 bit standard edition SP1 and oracle 11g 64 bit client), DTS enabled
    Below is the actual sql statement issued
    SET XACT_ABORT ON
    BEGIN TRAN
    insert into XXX..EUINTGR.UPLOAD_LWP ([ALTID]
              ,[GRANT_FROM],[GRANT_TO],[NO_OF_DAYS],[LEAVENAME],[LEAVEREASON],[FROMHALFTAG]
              ,[TOHALFTAG] ,[UNIT_USER],[UPLOAD_REF_NO],[STATUS],[LOGINID],[AVAILTYPE],[LV_REV_ENTRY])
              values('IS2755','2010-06-01',
    '2010-06-01','.5',     'LWOP'     ,'PERSONAL'     ,'F',     'F',     'EUINTGR',
    '20101',1,1,0,'ENTRY')
    rollback TRAN
    OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 7391, Level 16, State 2, Line 3
    The operation could not be performed because OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" was unable to begin a distributed transaction.
    Able to execute the above statement successfully without using transaction.We need to run the statement with transaction.

  • Installed successfully, but can't update.  Error "Serial Number is not for qualifying product"

    I installed Adobe Creative Suite Production Premium (CS5) on a new PC (Windows 8.1).  Installation was successful.  I uninstalled it on old PC and de-activated it.  My problem is that I can't Update.  Without Updates, I can't read newer Canon photos (so I can't use Bridge or PhotoShop).  In doing the install the first time, I put in an incorrect Adobe product number (I think from Elements 8.0, which I purchased years ago).  I have re-installed twice using the correct serial number, but same result:  I can't Update the programs and get a "Serial Number is not for qualifying product" error..  Please help.  Dave

    update manually,  http://www.adobe.com/downloads/updates/

  • A note of thanks to Oracle for the help I have received!

    Hi!
    I would like to thank the following people from Oracle for their help on a recent problem I was having with FOP PDF generation:
    Carl Backstrom for his patience and dilligence in finding the problem and
    the solution! Another bug squashed!
    Marc Sewtz for his initial investigation of the problem.
    Joel Kallman, David Peake and Matt Doherty for working behind the scenes to see that a solution was found.
    Without your help our project would have been dead in the water and not completed as an APEX project.
    Again many thanks for your time, patience and help in getting me a very needed solution!
    Dave Venus

    Just goes to show why this is one of the BEST software forums around.
    Not only are there many knowledgable "civilians" on here, willing to help with their expertise, but we also have many of the Oracle developers on here as well who are more than willing to help us with our problems.
    Bill Ferguson

  • Using jdbc with oracle-for-win95

    i am using oracle thin driver to connect my java code with oracleforwin95 i think it is called as personal oracle, while getting conection DriverManager.getConection("drivername@host:port(1521):sid","user","password") there is no sid for oracleforwin95 if i keep it blank i get an error connection refused some thing like that even i cannot use dsn for connection what is the problem should i use another driver if yes which one it is and from where it can be downloaded, or should i need to configure my oracle. please help me.

    This is my code given below
    import java.sql.*;
    public class Oconnection
         Connection conn;
         Statement st;
         PreparedStatement pst,pstissue,pstret,pstbook;
         public Oconnection()
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","manager");
              catch(Exception ex)
                   System.out.println(ex.getMessage());
                   ex.printStackTrace();
         public static void main(String args[])
              new Oconnection();
    *****************************************************8
    Error
    C:\Library>java Oconnection
    Io exception: The Network Adapter could not establish the connection
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Oconnection.<init>(Oconnection.java:17)
    at Oconnection.main(Oconnection.java:39)
    I am using Oracle for win95 or i think it is oarcleforwin98 .
    The sid of my database i found through query given by you was orcl, what changes soulh i do int he code so that it works.

  • Oracle for Sun Solaris (Intel Platform)

    I want to know that if oracle for sun solaris 8 (intel platform) is available and anyone has installed it. On OTN only oracle for sun solaris (For SPARC ) is available for download.
    if anyone know it for solaris 8 (intel platform) then please tell me where to get it from.
    rohit
    [email protected]
    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name ORACLE 9I DATABASE
    - Filename
    - Date/Time 5 JULY 2K2
    - Browser + Version IE 6
    - O/S + Version SUN SOLARIS
    - Error Msg

    I didn't see anything on the Sun site, but the disk arrived with my Solaris media. I have installed it on one machine (you need to create the "oracle" user id, the "dba" group, and you must set the tunable parameters for shared memory to install the software and example database.)
    I tried to install a second machine and the Oracle installer terminates half way through without errors. I'm still working that issue.

  • Equivalent of pl/sql for a tsql

    Can somebody post me the the equivalent of pl/sql for the below Tsql (Microsoft SQl Server)
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    SET ANSI_PADDING OFF
    GO
    CREATE TABLE [Localizations] (
    [pk] int NOT NULL IDENTITY(1, 1),
    [ResourceId] nvarchar(512) NOT NULL,
    [Value] ntext NOT NULL,
    [LocaleId] varchar(5) NOT NULL,
    [ResourceSet] nvarchar(512) NOT NULL,
    [Type] nvarchar(255) NOT NULL,
    [BinFile] image NULL,
    [TextFile] ntext NULL,
    [Filename] nvarchar(128) NOT NULL
    ON [PRIMARY]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [PK_Localizations]
    PRIMARY KEY
    ([pk])
    ON [PRIMARY]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_ControlId]
    DEFAULT ('') FOR [ResourceId]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_Filename]
    DEFAULT ('') FOR [Filename]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_LocaleId]
    DEFAULT ('') FOR [LocaleId]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_PageId]
    DEFAULT ('') FOR [ResourceSet]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_Text]
    DEFAULT ('') FOR [Value]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_Type]
    DEFAULT ('') FOR [Type]
    GO
    Edited by: user7722364 on Oct 19, 2009 8:18 AM

    The "default '' "(or null) constraints are not required.
    You need
    - a sequence instead of the identity column
    - a trigger to populate the sequence if it's not in the code
    then it's pretty similar
    - create table statement
    - create pk (which you could do as part of the create table statement if you wish)
    Whether you need NVARCHAR2 depends on your character set.

Maybe you are looking for

  • I am having a problem with Flash Player constant crashing.

    I have updated to new version plus uninstalled and reinstalled numerous times. Dell computers have also attempted and claimed to have been successful three different times. It still continues to crash. The new message I am getting is continue plug-in

  • Loading a decimal value to an infoobject of type char

    I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the fol

  • Can't Join CD Track?

    I've been able to select and Join CD tracks for years and suddenly the "join CD tracks" menu option in the advance menu is not available for use. It is gray and will not allow me to select it so I can't join tracks. Any ideas? Thanks, MJ

  • M2t (mpeg2 layer2 audio) Out Of Sync audio after upgrade to cs5

    Hi Everyone, We use JVC GYHD201 Cameras daily - they produce MPEG T/S files that worked fine in CS4. I am running win 7 Ultimate 64 on an intel Skulltrail MB w 16 gig of ram, 2 x 9775 quad core processors and a ati 4870x2 video card with 2 gigs of ra

  • Index Server not Displayed

    Hi All, I am working in EP6 SP 9 Patch 3 for KMC. I had my Trex working for searching docs less than 10 kb. Now i dont find my Index server in Trex monitor.In Trex Admin tool I find my index server in green status. But in Trex monitor it displays onl