Need Info Regarding Unix Scripts for DBA's

Hi,
I'm a oracle DBA with little knowledge of Unix.
I wanted to write some shell scripts which will be helpful for DBA's regular activity.
As i'm a new to oracle with unix can any plese tell me what are all the activities can be done throgh Unix Shell Scripts also suggest me how to learn unix shell scripts quickly.
Thanks in Advance
Gobinathan

Maybe it is about time you leave your ideal world, and take a reality check.
You don't take into account, I would say all over the globe, with the likely exception of the University of Washington, companies unwilling to upgrade to a supported version of Oracle. Then there are companies who can't upgrade to a supported version of Oracle, as the third party sw doesn't support a supported version of Oracle.
Then there are companies who are unwilling to pay for OEM and/or database control.
My company can't afford to use OEM to manage all our customers.
Daniel, I think I know your answers. They are, and always have been highly unrealistic. You need to leave your paradise, and stop making people frustrated, because they have to stick with the (you so often use that word) paleolithic version of Oracle that has been presented to them.
They simply have no choice.
In the Netherlands 50 percent of the customers use 10g, 25 percent 8i and 25 percent 9i. You can climb your hobbyhorse every day, many of them won't upgrade, simply because management doesn't want to upgrade, as it doesn't buy them anything, apart from support, which is considered unimportant, as the application 'works'.
Apart from that, your assertion scripts aren't portable across platform is not necessarily true when you start using Perl (comes with Oracle).
There are many tasks for which shell scripts are still mandatory.
In fact Rman is one of them. As Rman doesn't support variables, you can't use OEM to set up a script which uses a proper tag in the backup command.
You need scripting to reset an alert.
You need scripting to rotate the log file of a listener.
Etc, etc, etc.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Need info regarding planning adapter for HAL

    Hi all
    We are using 9.3.1 on windows machine, I am wondering for HspJsHome.properties file where I can check the port number for RMI .
    i just want to double check the port no for RMI is registered in planning or not.
    I am unable to connect planning adapter with planning server, to my surprise i am unable to see HspJSHome.prper file in
    Hyperion\HyperionPlanning\AppServer\InstalledApps\Tomcat\5.0.28\ HyperionPlanning\webapps\HyperionPlanning\WEB-INF\classes
    we are using tomcat I am unable to see the folders from Hyperionplanning\webapps I didn't find them , after 5.0.28 i have only two bat files of start and stop planning bat files, and also I do have only one folder with name InstallableApps not InstalledApps ...in the above given path.
    Did I make any mistake in installation.
    I already created the planning applicattion and initialized the wrkforce and capex too...
    regards
    Mar

    Hi,
    Version 9.3.x does not use the HspJSHome.properties file, all this information is now stored in the relational database for the planning system.
    Cheers
    John

  • Need help in creating script for "Task Schedule" in Oracle E-Bussiness Suit

    Hi,
    I need some urgent help regarding the scripting of Oracle E-Business Suite application. I am new towards working on Oracle Applications. I have been using LoadRunner 11.0 and protocol oracle applications 11i for the scripting of the application. The problem is as follows:
    Scenario- Schedule an incident to a resource.
    1) Log in to the application.
    2) Open Oracle Forms Page.
    3) Enter the details of the incident number.
    4) Right click on the incident number and then select “schedule” option.
    5) Check / Select the resource listed in the new form.
    6) Click on “schedule” Button.
    7) Exit the oracle forms.
    8) Logout from the application.
    I have recorded the scenario but when I try to run the script, it fails after completing the 4th step from the scenario mentioned above. I have done all the required co-relations..
    Another issue that I have noticed in the scipt is that it records a lot of requests to the AppsTCFServer.
    When I check the Tree View of the script, I have found that there are around 25 requests to the AppsTCFServer recorded in the script. In the header of these requests a TCF Start/Session number gets generated randomly. This number stays the same in few AppsTCFServer request headers and then a new number gets generated and the cycle continues.
    However LoadRunner does not generate this number by itself during replay. I cannot find this number in any previous responses.
    In the last few days, I have tried my hands on Oracle Openscript tool to record the above scenario, but still I am getting the same problem, i.e instead of getting the correct response from the server for the AppsTCFServer requests, I am getting the message "X-session 7098.... not found - aborting ".
    I get this message whether I use LoadRunner tool or the OpenScript tool.
    Please help me solve this issue.
    Thanks & Regards,
    Soumya Mukherjee

    This isn't much of a "code-sharing" site but a "knowledge-sharing" site.  Code posted me may be from a questioner who has a problem / issue / error with his code.   But we don't generally see people writing entire scripts as responses to such questions as yours.  There may be other sites where you can get coding done "for free".
    What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
    But the expectation here is for you to write your own code.
    Hemant K Chitale

  • Need Help regarding the JVM for the ARM926EJS Processor

    I Want to develop an application in java for the IMX.27 board which has ARM926EJS Procesor. This processor is jazelle enabled hardware.
    My questiion is that how to get the JVM for this. So that i will use my Java appliaction. I am using linux OS.
    Thanks in advance.

    Hi Narendra,
    Sun actually has a VM for the ARM ... well, actually 2 VMs for the ARM. Depending on your needs, there's a solution for JavaME CLDC, JavaME CDC, or JavaSE. There's also the open source implementations for CLDC and CDC. Here's how to get more info:
    JavaME: http://java.sun.com/javame/index.jsp
    CLDC open source project: phoneME Feature: https://phoneme.dev.java.net/content/phoneme_platforms.html#phonemefeature
    CDC open source project: phoneME Advanced: https://phoneme.dev.java.net/content/phoneme_platforms.html#phonemeadvanced
    Embedded SE: http://java.sun.com/j2se/embedded/offerings.html
    email inquiry to: [email protected]
    Regards,
    Mark

  • Automated Unix Script For Registering Artifacts In OER

    Hi,
    i want to create automated unix script which will register the artifacts automatically in Oracle Enterprise Repository (OER)
    is it possible to automatically harvest the artifacts in OER.
    please help
    regards,
    yshintre

    Some of what you want is possible. Take a look at the Count Tool in CS3/4. It may only be available in the Extended versions. That provides a
    reasonable interface for marking items in a image like you are wanting to do with cells. Take a look at that and see what kind of manual process
    you can get worked out.
    However, to get the workflow you want (or anything close to it) would require more than a little code.

  • Need info regarding infotype 0017.

    Dear Experts,
    I am new to Travel Management.
    In infotype 0017, I need information regarding RGrp M/A Statutory, RGrp M/A Enterprise,EE Grp Expense Type and EE Group Travel Mgt fields.
    I verified few config documents of Travel Management but could not understood the applicability of the above fields. Please help me in this regard.
    Points could be awarded accordingly.
    Regards,
    Dolly

    Hi,
    RGrp M/A Statutory->  Identifies a reimbursement group for meals/accommodations for which the same statutory or pay scale trip provisions for meals and accommodations are valid
    A reimbursement group is a grouping of employees for whom the same trip provisions are valid. The reimbursement group is specialized by the trip expense category.
    A reimbursement group for meals/accommodations is a reimbursement group for which the same trip provisions for meals/accommodations are valid.
    The reimbursement group for meals/accommodations is specialized as to whether it is needed to represent statutory/pay scale or enterprise- specific trip provisions.
    Example
    Trip costs levels A, B, C according to German Travel Expense Statutes
    Grouping of employees according to pay scale groups
    RGrp M/A Enterprise-> Identifies a reimbursement group for meals/accommodations for which the same enterprise-specific trip provisions for meals and accommodations are valid
    A reimbursement group is a grouping of employees for whom the same trip provisions are valid. The reimbursement group is specialized by the trip expense category.
    A reimbursement group for meals/accommodations is a reimbursement group for which the same trip provisions for meals/accommodations are valid.
    The reimbursement group for meals/accommodations is specialized as to whether it is needed to represent statutory/pay scale or enterprise- specific trip provisions.
    Example
    Members of the Executive Board
    Managers
    Salaried employees
    Industrial workers
    EE Grp Expense Type -> An employee grouping for trip expense type is a classification of employees for whom these trip expense types are permissible.
    Example
    - Executive Board
    - executive employee
    EE Group Travel Mgt fields-> An employee grouping for Business Trip Management is a classification of employees designed to fulfill the purposes of Business Trip Management.
    Example
    - employee
    - mailman
    - other
    Regards,
    Pramitha.

  • Need info on New Gl for a fresh implememtation

    Hello,
        Kindly give your inputs on the new gl functionality for a fresh implementation. Please provide some documentation or pros and cons of it.
    This is the senario, only one plant is being implemented for the time being, what is the possiblity of implementing the new gl at a later stage . If we activate the new gl can it be deactivated or if we activate can and not decide to use it and only uuse the regulat GL is that ok.
    kindly provide your inputs as it is urgent and have to give my suggestions soon to the client.
    points will be awarder generously.
    thanks.

    Ashwin,
    Here are my thoughts on the new GL.
    1) Parallel Accounting - This feature allows for much more seemless implementation of multiple GAAP accounting.  Previously you'd have to mess around with having accounts that are specific to different GAAPs, creating FI validations to ensure the entries balanced, and complicated reporting structures to make sure you had the proper reporting.  The only other solutions were special purpose ledgers which may have helped to separate transactions for reporting, but did nothing to simplify the chart of accounts issues.  If you are a multinational company, and will have different GAAPs, it is essential.
    2) Profit Center Integration - With the new GL, Profit Center Accounting is an integrated element of the reporting ledgers.  No need for a fully independent PCA implementation.
    3) Extended Coding Block - Better support for adding customer defined fields to the coding block and having full transaction processing and reporting support.  No need to implement the SPL unless you are doing some truly complicated manipulations to posted data such that you need user exits on flexible field movements.
    4) SAP Stated Direction - This is where SAP is going and they aren't looking back.  If this is a fresh implementation you should consider starting out in this manner instead of performing the transition at a later date.  There are different transaction codes for the New GL than from the old GL, different reporting tables for the RW/RP, etc.
    5) Document Splitting - If you need documents to split automatically for various attributes, e.g. profit centers, business areas, other custom defined fields, this is the only effective way to perform this.
    I can't answer to the going back/forth  between the two, e.g. classic versus new GL, but don't see why you would be absolutely in error with going new GL.  I'd have a different opinion, but unlikely, if you were already live on the classic GL and you were contemplating going through the conversion.
    I hope this was what you were looking for.  Some points would be nice if so, please.
    Regards,
    Kyle

  • Need Help regarding initial configuration for distributed cache

    Hi ,
    I am new to tangosol and trying to setup a basic partitioned distributed cache ,But I am not being able to do so
    Here is my Scenario,
    My Application DataServer create the instance of Tangosolcache .
    I have this config.xml set in my machine where my application start.
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <!--
    Caches with any name will be created as default near.
    -->
    <cache-mapping>
    <cache-name>*</cache-name>
    <scheme-name>default-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <!--
    Default Distributed caching scheme.
    -->
    <distributed-scheme>
    <scheme-name>default-distributed</scheme-name>
    <service-name>DistributedCache</service-name>
    <backing-map-scheme>
    <class-scheme>
    <scheme-ref>default-backing-map</scheme-ref>
    </class-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <!--
    Default backing map scheme definition used by all the caches that do
    not require any eviction policies
    -->
    <class-scheme>
    <scheme-name>default-backing-map</scheme-name>
    <class-name>com.tangosol.util.SafeHashMap</class-name>
    <init-params></init-params>
    </class-scheme>
    </caching-schemes>
    </cache-config>
    Now on the same machine I start a different client using the command
    java -Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.cacheconfig=near-cache-config.xml -classpath
    "C:/calypso/software/release/build" -jar ../lib/coherence.jar
    The problem I am facing is
    1)If I do not start the client even then my application server cache the data .Ideally my config.xml setting is set to
    distributed so under no case it should cache the data in its local ...
    2)I want to bind my differet cache on different process on different machine .
    say
    for e.g
    machine1 should cache cache1 object
    machine2 should cache cache2 object
    and so on .......but i could not find any documentation which explain how to do this setting .Can some one give me example of
    how to do it ....
    3)I want to know the details of cache stored in any particular node how do I know say for e.g machine1 contains so and so
    cache and it corresponding object values ... etc .....
    Regards
    Mahesh

    Hi Thanks for answer.
    After digging into the wiki lot i found out something related to KeyAssociation I think what I need is something like implementation of KeyAssociation and that
    store the particular cache type object on particular node or group of node
    Say for e,g I want to have this kind of setup
    Cache1-->node1,node2 as I forecast this would take lot of memory (So i assign this jvms like 10 G)
    Cache2-->node3 to assign small memory (like 2G)
    and so on ...
    From the wiki documentation i see
    Key Association
    By default the specific set of entries assigned to each partition is transparent to the application. In some cases it may be advantageous to keep certain related entries within the same cluster node. A key-associator may be used to indicate related entries, the partitioned cache service will ensure that associated entries reside on the same partition, and thus on the same cluster node. Alternatively, key association may be specified from within the application code by using keys which implement the com.tangosol.net.cache.KeyAssociation interface.
    Do someone have any example of explaining how this is done in the simplest way ..

  • Unix script for checking the user account status

    Hi All,
    i have created one unix script to check the status of the user in diff databases.
    #!/bin/ksh
    useracctreport.txt if [ ! -f hh ];
    then
    echo "Database file does not exist"
    fi
    echo "Enter Username"
    read USER
    echo "Enter the password"
    stty -echo
    read PASS
    stty echo
    for j in `cat users`
    do
    j="`echo $j| tr '[a-z]' '[A-Z]'`"
    for i in `cat hh`
    do
    sqlplus -s $USER/$PASS\@$i <<EOF >> useracctreport.txt
    column USERNAME format a8
    column ACCOUNT_STATUS format a5
    !echo "*****User $j Status in $i DB*****"
    select USERNAME,ACCOUNT_STATUS from dba_users where username=('$j');
    select OBJECT_TYPE,count(*) from dba_objects where owner='$j' group by object_type;
    EOF
    done
    done
    In log file ,i get the below error when its unable to connect to the DB.
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Is there any way i can supress this error?
    and is there any other way i can make this script faster.Thanks a lot for your help

    Hi,
    The failing line is
    sqlplus -s $USER/$PASS\@$i <<EOF >> useracctreport.txtYou should test the connect statement you provide to sqlplus. For example:
    CONSTRING=$USER/$PASS\@$i
    echo Connect string used: $CONSTRING
    sqlplus -s $CONSTRING <<EOF >> useracctreport.txtCheck the echoed value. It's malformed. Correct it appropriately.
    Yoann.

  • Need info regarding 11g OCA.

    Hi
    I am a 9i OCA.
    How can I upgrade to 11g OCA ?
    Please guide in this regard.

    user572632 wrote:
    Hi
    I am a 9i OCA.
    How can I upgrade to 11g OCA ?
    Please guide in this regard.There is no 'upgrade' for DBA OCA.
    Simply take the 1z0-052 exam (your existing SQL exam pass should be the other pre-requisite).
    However ..... if you ultimate goal is 11g DBA OCP but may have already untaken the required authorised training for 9i DBA OCP ... and i the can 1z0-032+1z0-033+1z055 would be a route to 11g DBA OCP without further training. If you have not already received an authorized traning course this is less important.
    See http://certification.oracle.com and review the getting 'started pages' carefully.

  • Need training material / test scripts for MRP and Supply Chain module. Can anyone hel

    Can anyone out there provide me with sample test scripts they may have used for upgrading to Oracle Financials 11i? Need sample scripts for MRP and Supply Chain management. Looking for good test scenarios for testing these modules. Appreciate any help. Email at [email protected]

    Can anyone out there provide me with sample test scripts they may have used for upgrading to Oracle 11i? Need sample scripts for MRP and Supply Chain management. Looking for good test scenarios for testing these modules. Appreciate any help. Email at [email protected]

  • Need Info regarding versions in XI

    Hi experts,
      How many versions are there in SAP XI..
      currently i am working on SAP XI 3.0.
      what is the difference between new 3.0 and new versions...
    Thanks,
    Swetha reddy

    Now the latest version is PI7.1 which contains below features,
    JDBC and RFC Lookup possible through Graphical design. so no need to write java coding for jdbc and rfc lookup.
    PI 7.1 consists of advanced adapter engine   which bypasses  to process messages & hence improves performance.
    Integration Repository (IR) is called Enterprise Service Repository(ESR)
    Introduced feature called Direct Connections, if you want to send some message with out mapping to some receiver.
    Introduced Function Library to reuse Java objects in other namespaces.
    Introduced MDM adapter with new features.
    etc.
    thanks,
    madhu

  • Unix Script for calling oracle packges.

    Hi All,
    I would like to know how to call packages(pro,fun) with parametrs from unix script.
    Can anybody provide me the sample code.
    thanks in advance.
    Dinesh

    This topic has been covered a few times in the past.
    Here are two threads that a quick search found:
    Execute stored procedure from script
    how to call shell script from pl/sql procedure.
    There are several other threads that may be of interest.
    HTH -- Mark D Powell --

  • Need info regarding Oracle UCM Accounts and Security Groups behaviour

    Need information regarding Oracle UCM Accounts and Security Groups behaviour.
    Oracle UCM version: 11.1.1.5.0
    Steps:
    1. Log in with "weblogic" user and created a content with id "content1"
    2. Applied "@acc1(R)" and "TestGroup1" to the cotent created in step 1
    3. Log out
    4. Log in as "acc1user1", the user is not able to see the "content1"
    5. Log out
    6. Log in as "role1user1", the user is not able to see the "content1"
    Account and Group information:
    1. User "acc1user1" is part of "@acc1(R)"
    2. User "role1user1" is part of "role1(R)" and is mapped to "TestGroup1" in UCM
    Expected:
    Both "acc1user1" and "role1user1" should be able to see "content1" as they have at least Read permission.
    Please help me understand why the users are not able to see the content.

    ACLs, like Accounts, are optional security setting which may add on some extra functionality to mandatory security groups. Likewise, the resulting permission is taken as an intersection of SG and ACLs.
    But in the second part the number of set of users is huge (approx say 600)I don't get this completely. Does this mean that those "sets of users" (users who see the same data) are distinct and that there is 600 of such groups?
    If you read thoroughly the manual I sent earlier, there is a recommendation that there should be maximum 50 security groups, and you should use accounts, should this number be exceeded. This means you could have all the documents in one security group (and have one common role with Read permission), but combine it with accounts. ACLs are not a good choice here - their performance and manageability is much worse than of accounts. ACLs are primarily used if you expect security settings to change during the lifetime (e.g. a project manager adds temporarily rights to access an item to another user, and revokes it when the user finishes his or her work).
    Note that accounts as well as permissions of users within accounts can also be mapped externally (from LDAP/AD) and it usually follows some kind of org chart.
    I'd feel more comfortable not to speak about users, security groups, roles, etc., but about some real-life objects and scenarios.

  • Help needed in Unix script for oracle 9i

    Hi gurus,
    I'm working on oracle 9i in solaris, i would like to calculate the amount of archived logs generate per day. Can anyone please help me to find that.
    Thanks

    Put the following lines in a script and it should work for you.
    SET feedback off
    SET line 200
    COL NAME FOR a100
    -- counts the no of archives generated today
    select count(*) "No. of Logs for today" from v$archived_log where to_char(completion_time,'DD-MON-YY')=to_char(sysdate,'DD-MON-YY');
    -- lists all archive generated for the day
    select name,blocks*block_size as "Size in KB" from v$archived_log
    where to_char(completion_time,'DD-MON-YY')=to_char(sysdate,'DD-MON-YY');
    -- shows total size in KB
    select sum(blocks*block_size) "Total Log Size for day in KB" from v$archived_log
    where to_char(completion_time,'DD-MON-YY')=to_char(sysdate,'DD-MON-YY');
    Hope this helps.
    Thanks
    Siba

Maybe you are looking for

  • How do I create a DVD from existing M2V and AC3 files?

    I have previously used Compressor 4 to render a M2V file and an AC3 file from which I burned a DVD 'job'.  Now, a week later, I wish to go back and burn another DVD from these files, (without rendering them again).  How do I use these EXISTING files

  • Build Cancelled due to Language Code

    My build is canceling during the initial compiler phase stating " Language cods for 'English' and 'English-2' must differ " Please advise! Heather

  • How can I make a WMV movie in Compressor?

    Hi guys, How can I make a WMV moive for window media player in Compressor? Anyone please, Thanks in advance, Zia

  • Importing Data

    I have .dmp file which has been created by using the Export utility. Now i want to import the same data to a different server or machine. I don't have any other details available except the .dmp file. How can i import the data to oracle and configure

  • Firefox not loading graphics and pictues for one user

    I am running 10.2.8 with Firefox 1.5.0.11 and one of the user accounts on my mac is not loading web pages properly. The IE for mac on that same account is working fine. All other accounts on the machine have firefox and work fine. It must be a prefer