Oracle with Unix

Hi There,
SQL> declare
2 cursor c is
3 select EName from emp for update of sal;
4 record c%ROWTYPE;
5 begin
6 OPEN c ;
7 loop
8 FETCH c INTO record;
9 EXIT WHEN c%NOTFOUND;
10 begin
11 update emp set sal = sal * 1.5 where CURRENT OF c;
12 --commit;
13 EXCEPTION
14 when others then
15 rollback;
16 end;
17 end loop;
18 CLOSE c ;
19 end;
20 /
PL/SQL procedure successfully completed.
I want to know whether , when an error occurs while updating a bulk of records, can I get the details of the record that failed. If there is a way please let me know, how to do it

I want to know whether , when an error occurs while updating a bulk of records, can I get the details of the record that failed. If there is a way please let me know, how to do itWhat type of errors do you expect? Is space issues? Data Issues or what?
If space issues, then you can youse oracle 9i new feature called resumable space allocation.
If data issues, you can handle it in the execption of pl/sql.
Jaffar
OCP DBA

Similar Messages

  • Advantages of using Oracle with Unix over Windows server

    Hi there,
    I want some article/document which depicts the advantages of using Oracle with Unix (say HP-UX or Solaris backend). Actually the plan is to use some Data Warehousing applications using Cognos Poweplay, ReportNet and either Decision Stream of Cognos or Oracle Warehouse builder may be used as ETL tool. For Data mining applications we are planning to use SPSS Clementine. The Data volume will be substantial one. At present we are developing some prototype in Windows 2003 advanced environment. We are plaiing to use Risc server and RAID-5. Pl. advice some ideal architecture for us, as you know, it's typically a Govt. level application data (mostly archival data). The reports will be published using Report Net, Adhoc query etc, OLAP analysis will be done using Powerplay.
    Regards,
    Anupam Basu

    Hi there,
    I want some article/document which depicts the advantages of using Oracle with Unix (say HP-UX or Solaris backend). Actually the plan is to use some Data Warehousing applications using Cognos Poweplay, ReportNet and either Decision Stream of Cognos or Oracle Warehouse builder may be used as ETL tool. For Data mining applications we are planning to use SPSS Clementine. The Data volume will be substantial one. At present we are developing some prototype in Windows 2003 advanced environment. We are plaiing to use Risc server and RAID-5. Pl. advice some ideal architecture for us, as you know, it's typically a Govt. level application data (mostly archival data). The reports will be published using Report Net, Adhoc query etc, OLAP analysis will be done using Powerplay.
    Regards,
    Anupam Basu

  • Using Oracle with Unix Cron

    Folks, hows everyone?.
    I am trying to go beyond SQL*Plus queries and teach myself some automation. Turned out to be a litle challenging. Can some one educate me on how to finish this task:
    I wish to automate the following report with crontab: pull data from HR account in Oracle and email it to [email protected] everyday at 6am.
    So, first, i wrote the following script, myqueryscript.sql, containing the query:
    spool /home/myname/myautoreport
    select * from hr;
    exit;
    /home/myname is my unix path and myautoreport directory to store a copy of results.
    Second, i wrote the following shell script, myshellscript, to execute myqueryscript.sql:
    /home/myname/sqlplus hr/psswd @/home/myname/myqueryscript
    third, I wrote the following crontab, mycronscript, to run the shell script:
    00 06 * * * "/home/myname/myshellscript"
    Finally, i submitted to crontab as:
    crontab mycronscript
    I didnt work. Am i missing something?.
    pls note: i am not the root in unix.
    Thanks,
    -a

    > Would you recommend this book on the basis of its contents table or any other
    books on the subject?
    Sorry - I'm not familiar with that author or that book. The most valuable Oracle "books" in my opinion are found at http://tahiti.oracle.com - the complete sets of all Oracle manuals from 8i to 10G.
    Many authors seem to only regurgitate Oracle manuals. The only Oracle book I've bought and considered as a worth every single cent, is Tom Kyte's Oracle Expert one-on-one.
    This goes into the very fundamental concepts of how to use Oracle correctly. It is a real eye opener.
    I am new to automation and wish to study it.What aspects of automation? It covers a very broad range of topics.
    Does automation in the way you described it, i.e. DBMS_JOB, depend on PL/SQL?Extensively. PL/SQL is a formal procedural language. It is as capable as Pascal, C or Java. Many seem to think in terms of PL/SQL as SQL plus some basic programming control structures. PL/SQL is not SQL. These are two different very languages.
    What makes it unique are:
    - it is a server side language running inside the Oracle database
    - it integrates so tightly with SQL that you can write SQL language statements in PL/SQL as if these are native to PL/SQL (which leads to the confusion thinking that PL/SQL is SQL)
    99% of all Oracle related code I write is PL/SQL. There is very little that you cannot do using PL/SQL. And Oracle is not just a capable database tier, it is just as capable as an application tier.
    When using Oracle, there is no need for a separate application tier like Weblogic, JBoss, etc. PL/SQL is in fact a lot more capable language for the application tier than Java or .NET.
    Simple example. One of the automation processes we have is to supply another system with delta changes from one of our databases. They wanted it in XML. They wanted it FTP'ed to their server. 100% of the code written for this is PL/SQL. From creating XML CLOBs in the database, to using FTP to transfer the contents of these CLOBs to their FTP server. With an APEX (Oracle Application Express) web application (also entirely PL/SQL) that provides for maintenance and administration of this automation.
    With less moving parts (not dealing with external processes and additional programming languages), Oracle PL/SQL applications are a lot quicker to develop, a lot easier to maintain, performant (it is very close to the data), and more robust.
    PL/SQL is a very critical core component in any automation and any application that uses the Oracle database.

  • Asociation of oracle with unix

    hi all,
    if i have unix shell script for oracle, i want to run that script ,is there any necessary for oracle shoud exist on unix operating system ?
    can we use another operating system?
    thanks
    pavani

    If you have a script for ksh or bash it will not work for sure on Windows
    (some exceptions are possible :) ). Please post your script and try to be more
    specific, because I cannot understand if you want to port your Unix shell script
    to for example Windows, or you want to use for example SQL*Plus to connect to
    db located on suppose Windows machine and execute the query.
    Best Regards
    Krystian Zieja / mob

  • How to access oracle with any unix user (like root)?

    I installed Oracle 10g on Redhat Enterprise Linux 3.
    I created one oracle user, and installed oracle in oracle users home directory. In oracle user I can access oracle very well. But I can not use oracle with other unix users like root. What kind of permissions I need to set to do so?

    You should never try to connect to Oracle as root, but if you want to connect as any other OS user, you will need to run ChangePerm.sh in $ORACLE_HOME/install in order to do this. It may not be present until you upgrade above the base release (like 10.2.0.3).
    Can not Logon To SQL*Plus as non-Oracle User: Libclntsh.So.10.1: Permission Denied
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=420083.1

  • Oracle plsql with unix example

    Hi frd
    i working oracle plsql and Unix individually but how to work together in plsql with unix , kindly give me example any material send me

    959406 wrote:
    thank for reply
    oracle table how to view using shell scripting
    shell scripting access oracle table
    sqlplus
    the shell knows nothing about oracle.
    What real problem are you trying to solve?  No, view a table using shell scripting is not a problem to be solved, it is a technique, and probably not the best technique for your unknown problem.

  • Can a dotnet application talk with unix os using Oracle SOA Suit?

    how can a dotnet application talk with unix operating system using Oracle SOA Suite? I have to automate a process on unix server like create user through dotnet application.. is it possible?
    My dotnet application is used for creating users, granting access on the servers. Some servers are 21C servers and some are legacy servers. In this dotnet application a user make certain request for the rights on those servers e.g. create user, give access rights, change password. This application is treated as user interface and maintaining tool of all this information and later on the basis of that request it generates the job-sheet. This job sheet is forwarded to responsible engineer who further provisions the request manually by going to that specific server in the request. So I want to automate this process that when user put any access or create user request then the moment he puts the request, that request should be provisioned without any human intervention i.e. automatically users must be created or password must be changed. I believe you will get an enough idea about my problem from all above information. So please help me.

    Post your query at "SOA Suite Discussion Forum"
    SOA Suite

  • Oracle carrer with unix advice

    hi
    iam working in a reputed mnc with CMMi level 5 .Started as fresher (BE I.T) i have around 1.6 years of experiance in unix scripting/oracle sql production support.
    with learning of sql and shell scripting
    i want to make my career in oracle which should be more dynamic,learning and creative not like in production support which have monotonus life.
    could anyone please guide me about what career path i should choose ?
    DBA , i have heard is montonous job too with same routine backups,no creativity with nightshifts and all, but it is more stable as people said. I have no experiance of it.
    second devolper track in sql/pl sql having its own limitations like less demand, less financial growth etc. and people usually wants to shift in other area like BO
    i don`t have any info about others areas like that i would like to explore and choose any one of them as carreer
    which one would be best with my current knowledge
    1)Datawarehousing
    2)Oracle apps
    3)Business objects (BO reporting)
    4)Oracle CRM etc
    5)Others (thats all i know,please add some others if they are creative )
    Problem area:
    1)iam really confused now which way to choose devopment or support
    2)how to jump in other company on wat basis? Since iam in prod support they will hire me for the same again
    3)How could i get to others areas like CRM,BO datawarehouse,apps ?As they more demanding and good learning and future path
    4)wat to do right now at this position?
    preparing for OCA right now but uncertain for career.
    Seeking good help from forum experts.

    Duplicate posting is considered as abuse/spamming
    Re: oracle career with unix scripting?
    Srini

  • How to find sql statement with Unix process pid

    Hi
    how to find sql statement with Unix process pid
    is there any view to find that.
    please if so let me know
    Thanks in advance

    this is how I am doing this:
    oracle 7352340 7459066 0 07:47:10 - 0:00 oracleJDERED (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle 7459066 5386396 2 07:47:10 pts/1 0:01 sqlplus
    select sid,serial# from v$session where process='7459066';
    SID SERIAL#
    2178 6067
    select sql_text
    from
    v$sqlarea a,
    v$session b
    where a.hash_value = b.sql_hash_value
    and b.sid = 2178
    ;

  • Schedule workbook using with Unix shell script

    Hi,
    Can we schedule workbook using with Unix shell script?
    Thanks,
    Jay

    I can't imagine how.
    1. You can schedule Disco workbooks via Disco itself.
    2. You can schedule Disco workbooks to run and output in different file formats automatically via batch scheduler in Windows running Disco Desktop directly (or can user VBasic).
    3. You can schedule Disco workbooks to run and output in different file formats automatically via a Java program running the Java Command Line interface.
    Moving forward, Oracle has announced that with a further interfacing of Disco with XML Publisher, you'll be able to use Oracle Apps concurrent manager and scheduling. But that's coming supposedly at the end of this year.
    And I think that's about it.
    Russ

  • Automatic stratup of oracle at Unix Solaris reboot

    I want to start automatically oracle when I reboot sun solaris. I did follwoing.
    1-I modifed the /var/opt/oracle/oratab and my entries are set Y
    2-In /etc/init.d I created dbora script.
    3-I made follwoing links
    # ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
    # ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
    After that when I rboot the sun box, it did not started oracle automatically. I run the dbstart script from unix, and i got error something about missing init.ora file. My oracle is 9.2.0. I browsed to $ORACLE_HOME/dbs directory and listed its contents. I found that there was spfileSID.ora file. I copied the spfileSID.ora to initSID.ora. Now I tried to run dbstart script from unix, I got ORA-01031: insufficient privileges error. I switched the user from root to oracle and run dbstart again and this time it started the databases. So now dbstart was working from unix. Now rebooted the unix box, but with reboot the oracle did not strated. Any body has an idea how I can make my oracle to start automatically with unix reboot. What I am missing here. Thanks

    Show us your dbora script.
    started oracle automatically. I run the dbstart
    script from unix, and i got error something about
    missing init.ora file. My oracle is 9.2.0. I browsed
    to $ORACLE_HOME/dbs directory and listed its
    contents. I found that there was spfileSID.ora file.
    I copied the spfileSID.ora to initSID.ora. Now IWell, the reason for not starting is that the example script dbstart is looking for a pfile (PFILE=${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora) while nowadays we should be using spfile. Perhaps copying over init.ora with the binary spfile.ora is not the best way to go.
    dbstart was working from unix. Now rebooted the unixbox, but with reboot the oracle did not strated. AnyAny output from script called during "boot up" e.g. a log file from dbora?

  • Oracle on Unix

    We are running Oracle on unix.
    How can I server my databse on website.
    I want to use NT Hosting, using ASP or Cold Fusion.
    Please write me....
    null

    Mehdi,
    This is probably not the best forum for this type of question,
    though the Oracle Migration Workbench Team hopes to cover
    applications to some extent in the future.
    ODBC is the standardised way of accessing database backend,
    some oracle front end products are mentioned below.
    Oracle has various web enabled products such as:
    oracles developer suite now allows web deployment,
    oracle application servers,
    webdb tool,
    java integration with the database.
    [lots of java buzzwords below, (well I am a java programmer)]
    oracle's jdeveloper java development tool.
    servlets,
    java server pages,
    Enterprise Java Beans.
    There are probably other less complete add hoc solutions, for
    accessing databases such as using apache and some perl scripts.
    Good luck,
    Turloch
    Oracle Migration Workbench Team
    Mehdi Raza (guest) wrote:
    : We are running Oracle on unix.
    : How can I server my databse on website.
    : I want to use NT Hosting, using ASP or Cold Fusion.
    : Please write me....
    Oracle Technology Network
    http://technet.oracle.com
    null

  • R/3 to other oracle system Unix Shell scripts Execute

    Hi,
    Here SAP 4.7 version, is it any possibility to run/execute other oracle system Unix shell scripts from sap program?
    With Regards,
    Anil

    ...yes,
    1.define own external command (sm69)
    2. run this command from your ABAP code by callig function module SXPG_COMMAND_EXECUTE
    regards,darek

  • Connecting to SQL Server on Win NT from Oracle On Unix

    I have Oracle database in one unix machine.
    I have to connect with the orcle database on unix from the sql server on windous NT.
    This can be accomplished trough ODBC but do not know the exact driver or an interface through which i can connect with the unix oracle database.
    If anybody have any idea about commecting two hetrogeneaus databases on two different OS.
    Please Help
    Thanks in advance.
    Satish Pahade

    Once a time I practise the replication betweem the sql server and oracle in UNIX.
    I just succeed in replication from sql server to oracle db.
    I can recall that this donot need ODBC.
    YuePeng Chen.
    [email protected]

  • Accesing Oracle with OCI8

    Hello,
    I have never used OCI to access Oracle with JDBC. I know how to write down the connection String, but I know that's not the only thing to do. Can someone tell me what to do? I need to install an Oracle Client if I access from the same machine? I know that if i'm accessing from another machine I have to install a client.
    Thanks

    if you`re accessing the database from the same machine where the database resides, you don`t need to install the oracle client.
    Some configuration is necessary though. This is OS dependant, but at least the environment variable ORACLE_HOME should be set.
    What you basically need is the following: The user who is making the JDBC connection must be able to use TNSPING to ping to the instance. So if your instance name is "ORACLE", go to the command line (windows command line, unix shell or whatever) and type
    tnsping oracle

Maybe you are looking for