Oracle pl/sql

Hello

I want to know wat is diff betwn exists and in

Concerning

Prasant

Oh there there, it seems that your keyboard is broken, as some of your keys don't seem to work.  I suggest that you talk to your computer support for that people.

As for your question, that you found when you google for the answer? or looked in the documentation?  Understand more precisely on the differences between the two operators?

Re: 2. How can I ask a question in the forums?

Tags: Database

Similar Questions

  • What is this new SQL Beta - 1z1 - 071 - 2 SQL - Oracle Database SQL 12 c

    Hello

    It's confusing.

    This looks like a 2nd review SQL for Oracle 12 c.

    What is this new SQL Beta - 1z1 - 071 - 2 SQL - Oracle Database SQL 12 c

    Can someone explain.

    Roger

    OK - I guess I should have held off a few hours before my previous answer.  I just got an email in the Certification of Oracle program manager. Now, I have inside information.

    1Z0-071 is a SQL new test and the role it plays is between that of the review of databases SQL and SQL Expert.  Specifically, unlike review of databases SQL, passing it will give proof of the OCA for people who spend. I don't know more than that yet.  The review details page is not available and if the subjects are currently a grey area for me.  I'll probably create a blog on the review, if I can get a few details about it.

  • That means 1z0-117 oracle 11g sql tuning now say it includes v12 addition v11

    Hello

    I did the 1z0-117 sql tuning review once.

    Not too far away.

    I studied under and turned off for a while.

    I anticipate taking in 1 month.

    However, I just noticed that the oracle site says 1z0-117 also said that v12 is also included for consideration:

    Oracle 11g sql tuning.

    It makes no sense at all.

    Roger

    However, I just noticed that the oracle site says 1z0-117 also said that v12 is also included for consideration:

    Oracle 11g sql tuning.

    Unless you are looking for something I'm not, what actually is the 1Z0-117 page says: "validated against: review has been validated against Oracle Database 11g Release 2 version 11.2.0.1.0 and database Oracle 12 c 12.1.0.1.0"

    What they actually mean by it is that someone went through all the issues and and asked the question "is still a relevant issue for the release of 12 c to Oracle?'." "  If they find issues that are not valid because of an update/change, then the question will be removed from review (or changed) so that someone who has used 12 c but not 11 g will not at a disadvantage.

    This is * No * means that Oracle has added questions to the review of the capabilities that were introduced in version 12 c.

  • Anonymous performer of Oracle PL/SQL in the Production environment leave a residue?

    Hello

    In my project, we have a large PL/SQL in Prod-Replica Envt to generate scripts. However, to reproduce Prod for this Prod-Replica lasts long and is causing a delay to respond to change requests.

    We have READ ONLY access to Prod DB, but we cannot deploy the PL/SQL Package it. We plan to convert the PLSQL in an anonymous block PLSQL and running it in PROD DB to get real data. Alternatively, we can run it directly or via Java and then read the DBMS output later. as mentioned here-> the use of cursors and results in Oracle PL/SQL, Java/JDBC - Stack Overflow

    , However, is not an expert in PL/SQL, I wanted to know, if it leaves residues in PROD outside the additional load a temporary server for read queries. We only select queries in this PL/SQL and so I donot believe we leave triggers or change the DB somehow.

    Can you please let me know the possible consequences of it.

    -Thanks & Regads

    -Scott

    There will be an impact on the server, the conversion of code unit of PL/SQL (procedures and functions) must be encapsulated in a single code PL/SQL anonymous block.

    This anonymous PL/SQL code block needs to be parsed and compiled - burn a lot of CPU (that oppose the use of unit code already compiled PL/SQL).

    This anonymous PL/SQL block is likely to be very large because it contains too many units of PL/SQL source code. This needs memory to the server as the whole code block will be stored in the shared pool (for analysis).

    Another impact on performance would be wise to network. It requires more bandwidth to transfer this big block of code (created by the customer) to the Oracle server. This increases latency. And is not an evolutionary approach.

    So no, there is no "residue" of the code inside the actual physical database code is never stored in the database. However, this approach and the code will affect negatively network and server resources.

    You should consider the problem and determine if this solution you have in mind, justifies this impact.

  • difference between the incremental update of the IKM oracle and incremental update IKM oracle (PL - SQL)

    Hello

    What is the difference between the incremental update of the IKM oracle and updated incremental IKM oracle (PL - SQL) and incremental update IKM oracle (line by line).

    Thank you

    Papai

    The only difference is that the second using plsql for incremental update. He also to manage clob issues well enough.

    If you need to know more you can read the description of each KM section.

    Incremental update IKM Oracle (PL-SQL)

    -------

    Description:

    -Knowledge integration module

    -Integrates data into an Oracle table from target in incremental update mode using PL/SQL.

    -Non-existent rows are inserted. already existing lines are updated.

    -Data can be controlled. Data invalid are isolated in the error Table and can be recycled.

    -This KM uses PL/SQL to perform the inserts and updates until and blob columns are supported. Please see the restrictions.

    -When you use this module with a source table logged, it is possible to synchronize the deletions.

    Restrictions:

    -When working with the logged data, if the "synchronize destruction of the newspaper" are executed, the lines deleted on the target are engaged

    -The data are updated even if not changed (upgrade from any (e)

    -The number of lines (number of inserts/changes) is not available because the transactions are performed using PL/SQL

    -Comparison of the data is performed using the key to update defined in the interface. It must be set.

    -L'option TRUNCATE does not work if the target table is referenced by another table (foreign key)

    -Options FLOW_CONTROL, and STATIC_CONTROL call the Module knowledge check to isolate invalid data (if no CKM is defined, an error occurs). These two options should be set to NO in the case where an integration Interface meets a TEMPORARY target data store.

    -L' FLOW_TABLE_OPTION option is set by default to NOLOGGING. Set it to a space if the interface is running on an Oracle 7 database

    -Deletions are committed regardless of the VALIDATION option

    Incremental update of the IKM Oracle

    -------------

    DESCRIPTION:

    -Integrates data into an Oracle table from target in incremental update mode.

    -Non-existent rows are inserted. already existing lines are updated.

    -Data can be controlled. Data invalid are isolated in the error Table and can be recycled.

    -When you use this module with a source table logged, it is possible to synchronize the deletions.

    REQUIREMENTS:

    -The update key defined in the interface is required.

    RESTRICTIONS:

    -When working with the logged data, if the "synchronize destruction of the newspaper" are executed, the lines deleted on the target are engaged

    -L'option TRUNCATE does not work if the target table is referenced by another table (foreign key)

    -Options FLOW_CONTROL, and STATIC_CONTROL call the Module knowledge check to isolate invalid data (if no CKM is defined, an error occurs).

    These two options should be set to NO in the case where an integration Interface meets a TEMPORARY target data store.

    -L' FLOW_TABLE_OPTION option is set by default to NOLOGGING. Set it to a space if the interface is running on an Oracle 7 database

    -Deletions are committed regardless of the VALIDATION option

    -L' ANALYZE_TARGET option will allow to assess correct statistics only if the VALIDATION is set to Yes. Otherwise, the IKM gather statistics based on old data.

    -Default UPDATE option is TRUE, which means by default it is assumed that there is at least one column nonkey specified in a target data store.

  • Links of DB Oracle to Sql server

    Hi all

    I intend to create DB connection from oracle to sql server 2005.

    Please provide the doc to create db connection from oracle to sql server 2005 and also made me know is their any freeware to do the same thing.

    Concerning

    It would be useful you might mention what platform works on your Oracle database and word size of the OS (32/64 bit).

    The free solution would be to use the database for ODBC (= Dg4ODBC) gateway and install it on a platform of MS Windows or Linux 64-bit with regard to these 2 platforms that Microsoft offers a free ODBC driver. On all other platforms, you can buy an ODBC drivers appropriate from a 3rd party such as DataDirect provider. I know, some people here on the Forum use FreeTDS but this driver is not a good choice when using it in production.

    Beginning with the documents where you can create a link to database free of charge:

    Please take a look at documents available on the My Oracle Support Portal:
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems to connect to Oracle databases Post Install [1266572.1 ID]
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 32-bit Windows to connect to Oracle databases Post Install [466225.1 ID]
    and
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 32-bit Windows to connect to Oracle databases Post Install [466225.1 ID]

    As mentioned for other platforms, you can usually buy a 3rd party ODBC driver and according to licensing costs this 3rd ODBC driver may be more expensive the using commercial product Oracle, MS SQl Server database gateway. It is designed for MS SQl Server connections and much more powerful then DG4ODBC - for example it allows you to call SQL Server stored procedures remotely or to participate in the distributed transaction.
    Documents on the DG4MSQl are also on the support of Oracle Portal.

    -Klaus

  • Oracle pl/sql certification will help me to do THIS job

    Hello guys,.
    I finished my bachelor's degree in computer science, I'm confused a little, I can get a job after having certified in associate Oracle Pl/sql developer

    Can I get a job after having certified in associate Oracle Pl/sql developer

    Oracle certifications can provide an advantage in getting a job. They do not guarantee that you will get a. I wrote a few articles (see below). The second speaks of getting hired as a s/n, but the majority of the article is relevant to get hired as a developer.

    http://EzineArticles.com/?will-obtaining-an-Oracle-certification-be-valuable-to-my-career?&ID=7204261

    http://EzineArticles.com/?I-just-got-an-Oracle-certification---how-can-I-get-hired-as-a-DBA?&ID=7057698

  • Data migration from Oracle to SQL Server

    Hello

    I have the Oracle database in one or several table, I also blob data, i.e. images are stored, now I want to move that data to the sql server database, which is the best way to do this?

    I would like to test for a migration of the table that contains the image data in the Oracle database and invade the SQL Server table.

    How to test for an Oracle table data to SQL Server migration?

    But the first thing I want to confirm is that if the Image from Oracle DB to SQL Server DB data are possible? is there something must be supported during the migration?

    Thanks in advance.

    Kind regards

    Vishal

    Published by: 968331 on October 31, 2012 02:31

    I think that it is supported. The equivalent data type in sql server is IMAGE/varbinary (max)

    See the bottom of the article for the mapping of data types:

    http://weblogs.sqlteam.com/jamesw/archive/2010/07/28/datatypes-translation-between-Oracle-and-SQL-Server-part-1.aspx

  • Number of databases such as Oracle and SQL Server in the same application ADF

    Hello

    In my application, I need to use two different databases such as Oracle and SQL Server. There are screens that I need to develop in the ADF where I need to involve fields of the tables in these two different databases. I just want to know - is it possible to do so in application of the ADF?

    Or to create a sort of link between these databases in the backend? Then create a view object involving some distributed SQL queries. What can I do with this type of request than anything? I mean, can I use the two insert or update operation using this VO?

    Or y at - it another way to do this?

    Please help, help here would be really appreciated. I've been stuck with this problem for a while now. I did search our forums for the same problem, but was not able to find a reliable solution.

    Thank you
    Vijay

    It's still not clear to me if you need two db tables in a query, or a transaction.
    If this is the case, your best option (to my knowledge) is to use a db link. in this way, you only need to access (for example the oracle db) and can access the objects from the other data from the oracle database.
    I don't understand
    >
    (3) a model project with a meeting of the two datasource. I selected a data source and created OT and VO. When I have selected a different data source and select tables to create VO and EO and finished but these EO and VO is displayed in project. >

    (2) If you need to link data from these two dbs you can not use this approach (see the note at the top of the post)

    Timo

  • the Oracle PL/SQL compiler initialization settings

    Hello

    What are the parameters of the initialization of the oracle PL/SQL compiler.

    and

    What this below average of error message?

    PLW-06009: 'OTHERS_TEST' of OTHER Manager of the procedure does not reach
    RAISE or RAISE_APPLICATION_ERROR

    I saw this message in the new features of the compiler to Oralcle plsql, I'm not waking up his goal.

    Thank you
    Vinod

    You can query V$ PARAMETER.

    or:

    SQL> show parameter compiler
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    plsql_compiler_flags                 string      INTERPRETED, NON_DEBUG
    

    And of course it is all documented:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25519/errors.htm#LNPLS00711

  • Need help to write to Oracle and SQL Server in the Oracle triggering

    We have a third which feeds data for us. Their client application feeds directly to some source tables in our Oracle database 10g. We have triggers on those tables that sort and treat lines as they come.

    We have a new operation and try to write some of these incoming data now to a SQL Server database through heterogeneous services - essentially the same exact data in two databases. I have a related database that works very well for the selection, but I've never tried to write Oracle PL/SQL to write in a DB SQL Server 2008. My first attempt was met with the following error: "ORA-02047: impossible to join the current distributed transaction.

    I found another thread where they say that the only way to do it is by using a stand-alone transaction, but they do not give an example. Here is the section of relaxation that I use:
      select to_char(new_date,'MM-DD-YYYY') into sql_txt from dual;
      insert into mancamp_location@sqlweb
           ("UnitID", "ManCampID", "Lat", "Long", "UpdateDT", "VehSpeed", "VehDirection", "Landmark")
        values (v_truck, f_unit, f_lat, f_long, sql_txt, f_spd, f_dir, f_ldmk);
    Can someone point me to a way to accomplish this simple insertion?

    An example of a standalone trigger is:

    Suppose you have a table in Oracle:

    CREATE TABLE emp_sal
    (
    EMPNO NUMBER 4,
    SAL NUMBER (7.2));

    and a similar table in a SQL server:
    SQL Server:

    CREATE TABLE emp_sal
    (
    EMPNO NUMERIC (4).
    SAL NUMERIC (7.2));

    Then, you can create an insert trigger that replicates the data:
    CREATE OR REPLACE TRIGGER dg4odbc_repl AFTER INSERT ON emp_sal
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB '.
    VALUES (: new.empno,: new.sal);
    COMMIT;
    END;
    /

    -Note the validation, otherwise risk of ORA-6519

    When you now insert a record into the Oracle database:
    insert into emp_sal values (1234, '1200,89');
    the trigger is activated and inserts the record in SQL Server:
    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    It works fine when you post data insert, but as soon as restore you the insert only data Oracle will be cancelled - data will remain as long as the independent transaction dedicated to its SQL Server insert:

    insert into emp_sal values (1384, '1200,89');
    Rollback;
    Select * from emp_sal;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89
    1384 1200.89

    So I strongly recommend to use the DG4MSQL gateway which is able to participate in distributed transactions and allows validation/restore transactions.

    DG4ODBC lie on OTN (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html-online check out the "See all" link for your favorite platform), cloud of delivery of software Oracle (https://edelivery.oracle.com/) or "My Oracle Support". My Oracle support welcomes the latest version 11.2.0.3. In My Oracle Support goto patches and updates, then search for 11.2.0.3 data set Patch 10404530patch: 11.2.0.3.0 PATCH SET for ORACLE database SERVER, choose your preferred platform and see the Readme which CD contains the gateway software.

    Published by: kgronau on April 24, 2012 08:44

  • [Oracle] [ODBC SQL Server driver] String truncation on the right {01004} data

    When importing data from SQL Server 2005 to Oracle 11 g Release2 gateway, I get following error:

    insert into CSDescr select * from CSDescr@sqlserver
    *
    ERROR on line 1:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Oracle] [ODBC SQL Server driver] string data, right truncation + {01004} +.
    ORA-02063: preceding 2 lines from SQLSERVER

    Oracle database characterset is AL32UTF8
    SQLServer database characterset is SQL_Latin1_General_CP1_CI_AS

    Here is the configuration file for the gateway settings:

    HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    I think that the definition of the parameter HS_LANGUAGE must correct the error, but I want to know what should be the value of this setting?

    HS_LANGUAGE must be set to a character set used by the foreign database

    Try: HS_LANGUAGE = american_america. WE8MSWIN1252
    Also specify HS_NLS_NCHAR = UCS2 nvarchars of SQl Server are stored in the UCS2 character set

  • Oracle 10 g 2 64 bit odbc to oracle to sql server Win 2008 EE 64 bit

    Hi, I have a problem with a creation of 64-bit 10 g oracle to sql server odbc 2, I have several instructions with no luck at all. My OS is windows 2008 EE 64 bit on the server oracle and sql server.

    That's what I did

    1. in the directory of $oracle_home/hs/admin
    inithsodbc.ora
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = hsodbc
    HS_FDS_TRACE_LEVEL = off

    2. in the $oracle_home/network/admin
    listener.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME=C:\oracle\product\10.2.0\db_1)
    (PROGRAM=C:\oracle\product\10.2.0\db_1\hs\hsodbc)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx) (PORT = 1521))
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    )

    And the tnsname.ora

    tnsnames.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    PRUEBA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = test)
    )
    )

    hsodbc =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST=xx.xx.xx.xx) (PORT = 1521))
    (CONNECT_DATA = (SID = hsodbc))
    (HS = OK)
    )

    I create the connection odbc test, the result is TEST PASSED

    4. the i create a database on my database link
    CREATE THE DATABASE LINK XYZ PUBLIC
    CONNECT to 'sysdba' IDENTIFIED BY 'masterkey '.
    Using "hsodbc."

    5. run a select
    SQL > select * from dual@XYZ;
    Select * from dual@XYZ
    *
    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of XYZ

    6. when I check the log of the listener, I get this error

    March 25, 2011 11:48:40 * (CONNECT_DATA = (CID = (PROGRAM =)(HOST=) (USER = Administrator)) (COMMAND = status)(ARGUMENTS=64) (SERVICE = LISTENER) (VERSION = 169870592)) * status * 0
    March 25, 2011 11:48:47 * (CONNECT_DATA = (SID = hsodbc) (CID = (PROGRAM =) (HOST =)(USER=PRO\Administrator) PRO)) * (ADDRESS = (PROTOCOL = tcp (PORT = 49329))(HOST=xx.xx.xx.xx)) * establish * hsodbc * 12518
    TNS-12518: TNS:listener could not hand off client connection
    AMT-12560: TNS:protocol adapter error
    AMT-00530: Protocol adapter error

    Published by: user626125 on March 26, 2011 11:39

    Published by: user626125 on April 12, 2011 14:49

    I guess the point of the answer above was to close and move this thread to the appropriate forum.

  • Oracle PL/SQL 10g OCP Certification

    Hello
    I have to pass an exam before OCP Oracle PL/SQL 10 g exam or I can record directly, as I've heard to take the certification of DBA Oracle 10 g, it is mandatory to delete SQL database OCA certification, please clarify as soon as POSSIBLE.
    Thanks in advance

    You should ask questions like that on the {forum: id = 459} forum.

    Oracle also has this information on their Web site: Oracle PL/SQL and Oracle Forms Developer

  • Unlike char in ORACLE and SQL SERVER

    Hello gurus,

    I tried to querying data from Oracle to sql server through linked server, but get me an error! set length corresponds to the error! I know there are CHAR data type in sql server and thus as in oracle.

    But when I use the CAST FUNCTION with CHAR it works fine
    -- error code 
    
      select * from openquery( linkoracle11 
               select  col1, col2, col3 from test_table )
    
    
    -- say col3 char(1)   -- data type
    ---

    -- working code 
    
      select * from openquery ( linkoracle 11 
               select  col1, col2, cast (col3 as char(1)) as col_3 from test_table )
    I was wondering, what is the difference between oracle and sql server for the CHAR data type?

    The gurus of the idea?

    Thank you

    What is the error you get?

    What is the characters in database and NLS_LENGTH_SEMANTICS game on your Oracle system?

    SELECT *
      FROM v$nls_parameters
     WHERE name LIKE '%CHARACTERSET';
    
    SQL> SHOW PARAMETER nls_length_semantics;
    

    What is the character set of data in SQL Server?

    If your local database is a variable length character set (like UTF8) and NLS_LENGTH_SEMANTICS is set to (default) BYTES, a char (1) allocate 1 byte of storage which may not be sufficient for a single character. The receiving application may need to allocate a buffer with 3 times more many bytes as there are characters in order to ensure that it will be able to process the result. I don't know why add an implicit CAST that would change, but since we are several levels removed from the code to figure out how large a buffer to allocate, it is not very surprising.

    Justin

  • Oracle PL/SQL Developer certified associate

    EXAM 1Z0-007 Introduction to Oracle9i SQL®
    or
    1Z0-047 Oracle database SQL expert
    or
    1Z0-051-Oracle Database 11g: SQL Fundamentals I

    Program REVIEW with PL/SQL 1Z0-147
    OR
    Oracle Database 11 g: program with PL/SQL 1Z0-144

    Oracle PL/SQL Developer certified associate

    I checked the link: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=155 & p_org_id = 53

    After completing the 1 review basic of sql and pl/sql, I need to attend a practice exam for the certification of pl/sql developer OCA or not need?

    9i DBA OCP, before I attend the practical exam. now, there is no change for 11g OCA?

    Thanks in advance.

    rajeysh wrote:
    Hi don,.

    Thanks for your reply.
    My question is, we would have to apply the hands on review after completing exams Developer OCA to get our certification in post?

    PL/SQL Developer OCA or same PL/SQL Developer OCP have one hand on the requirement of the course.

    You don't need to attend (yet) training for the latter.

    Search requirements @ http://www.oracle.com/education/certification (locate under Certifications... View all certifications).

Maybe you are looking for