Genrating script for following scripts.

HI,
i have to genrate script for getting this output from 100 servers.
but i tried on 2 servers but out put was not prpaerly allinged i spool the output
can any one suggest me to take this output on CSV or other proper format.
1.1 select * from v$version
1.2 select * from v_$database
1.3 select * from sys.V_$PARAMETER
2.1 select * from sys.dba_users order by username
2.2 select * from sys.dba_profiles order by profile
3.1 select * from sys.dba_role_privs order by grantee
3.2 select table_name, privilege from dba_tab_privs where grantee = 'first_role_name' minus select table_name,privilege from dba_tab_privs where grantee = 'second_role_name'
3.3 select * from sys.dba_sys_privs order by grantee
3.4 select grantee from sys.dba_sys_privs where grantee IN (select username from sys.dba_users)
3.5 select grantee from sys.dba_sys_privs where grantee NOT IN (select granted_role from sys.dba_role_privs) AND grantee NOT IN (select username from sys.dba_users)
3.6 select grantee, table_name, privilege, grantable from sys.dba_tab_privs order by grantee
3.7 select grantee from sys.dba_tab_privs where grantee IN (select username from sys.dba_users)
3.8 select grantee from sys.dba_tab_privs where grantee NOT IN (select granted_role from sys.dba_role_privs) AND grantee NOT IN (select username from sys.dba_users)
3.9 select table_name, column_name, privilege from sys.dba_col_privs order by grantee
3.10 select grantee from sys.dba_col_privs where grantee IN (select username from sys.dba_users)
3.11 select grantee from sys.dba_col_privs where grantee NOT IN (select granted_role from sys.dba_role_privs) AND grantee NOT IN (select username from sys.dba_users)
4.1 select * from sys.V_$DATAFILE
4.2 select * from sys.V_$CONTROLFILE
5.1 select * from sys.product_user_profile order by username
6.1 select * from sys.dba_db_links This command lists database links
7.2 select * from sys.dba_stmt_audit_opts
7.3 select * from sys.dba_priv_audit_opts
thanks!!!

Try with the SQL formating.... col format, linesize,wrap on off... etc...
See more here :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm

Similar Messages

  • Including a test script for other scripts in OpenScript

    Hi all,
    I am a newbie in OpenScript. I had created a "myfunctions" test script which have all the common functions for my scripts. I found out that, for the script to be called, we need to add it to the script assets. This will not be feasible in my case because there are many scripts that calls these functions and I cant add them to all. Is there any other method to include it (eg. Making it in a jar file and using import? or something of that sort?). Couldnot get any help from the net or the documentation. Please let me know a way to handle this.
    Thanks.

    Hi,
       Looks like the relative path information is not being properly resolved during Replay. Is the application URL being properly loaded in the Replay view? By "properly" I mean does it have the entire URL of the application with the protocol, server & port number?
    Regards,
    Satyajit

  • Custom user/root scripts for hibernate-scripts

    i am using hibernate-scripts and installed it by using arch guide.
    i am trying execute some scripts on resume and suspend. but folloing method doesnot seems to work,
    In common.conf i put
    OnSuspend 00 bash /etc/hibernate/suspend.sh
    OnResume 00 bash /etc/hibernate/resume.sh
    both *.sh are chmod'd as +x. both file have touch /tmp/$1 in the end.
    there would no /tmp/*.sh.
    so i am stuck here.
    thanks

    i have tried putting
    OnSuspend 20 touch /tmp/suspend
    OnResume 20 touch /tmp/resume
    even that does not work.
    other configs in /etc/hibernate/
    hibernate.conf
    TryMethod ususpend-disk.conf
    ususpend-disk.conf
    USuspendMethod disk
    Include common.conf
    common.conf
    # Configuration options common for suspending to disk or RAM.
    # Options are not case sensitive.
    # See hibernate.conf(5) for help on the configuration items.
    ### Some global settings
    Verbosity 0
    LogFile /var/log/hibernate.log
    LogVerbosity 1
    LogTimestamp yes
    # AlwaysForce yes
    # AlwaysKill yes
    # HibernateVT 15
    Distribution arch
    # XDisplay :0
    ### Scriptlets
    ### Scriptlets provide support for doing all sorts of things before and after
    ### suspending. The defaults settings here should work for most people, but
    ### you may wish to edit these to taste. Consult "hibernate -h" for help on
    ### the configuration settings.
    ### bootsplash
    ## If you use bootsplash, also enabling SwitchToTextMode is recommended if
    ## you use X, otherwise you may end up with a garbled X display.
    # Bootsplash on
    # BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
    ### clock
    #SaveClock restore-only
    #DirectIsa
    ### devices
    # IncompatibleDevices /dev/dsp /dev/video*
    ### diskcache
    DisableWriteCacheOn /dev/sda
    ### fbsplash (enable SwitchToTextMode if you use this)
    # FBSplash on
    # FBSplashTheme tuxonice
    ### filesystems
    # Unmount /nfsshare /windows /mnt/sambaserver
    #Unmount /home/u1 /mnt/wd
    # UnmountFSTypes smbfs nfs
    # UnmountGraceTime 1
    # Mount /windows
    ### grub
    # ChangeGrubMenu yes
    # GrubMenuFile /boot/grub/menu.lst
    # AlternateGrubMenuFile /boot/grub/menu-suspended.lst
    # BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
    # see http://bugs.debian.org/317479
    # RemountXFSBoot yes
    ### hardware_tweaks
    # IbmAcpi yes
    # RadeonTool yes
    # Runi915resolution yes
    FullSpeedCPU yes
    ### lilo
    # EnsureLILOResumes yes
    ### lock (generally you only want one of the following options)
    ## For console you need vlock available.
    ## For x you need xscreensaver-command-command available.
    ## For gnome you need gnome-screensaver-command available.
    ## For kde you need dcop, kscreensaver available.
    ## For XAuto you need xautolock available.
    ## For Xtr you need xtrlock available.
    ## For Freedesktop (for example KDE4) you need dbus-send available
    # LockConsoleAs root
    LockXScreenSaver yes
    # LockGnomeScreenSaver yes
    # LockFreedesktop
    # LockKDE yes
    # LockXLock yes
    # LockXAutoLock yes
    # LockXtrLock yes
    ### misclaunch
    OnSuspend 20 touch /tmp/suspend
    OnResume 20 touch /tmp/resume
    ### modules
    # UnloadModules snd_via82cxxx usb-ohci
    # UnloadAllModules yes
    UnloadBlacklistedModules yes
    LoadModules auto
    # LoadModulesFromFile /etc/modules
    ### modules-gentoo
    # GentooModulesAutoload yes
    ### network
    # DownInterfaces eth0
    # UpInterfaces auto
    ### networkmanager
    # EnableNMReconnect yes
    ### pause_audio
    # MuteAudio yes
    # PauseAudio yes
    ### pcmcia
    # EjectCards yes
    ### programs
    # IncompatiblePrograms xmms
    ### services
    # RestartServices laptop_mode anacron
    # StopServices alsasound
    # StartServices aumix
    ### vbetool
    # EnableVbetool yes
    # RestoreVbeStateFrom /var/lib/vbetool/vbestate
    # VbetoolPost yes
    # RestoreVCSAData yes
    ### xhacks
    SwitchToTextMode yes
    # UseDummyXServer yes
    # DummyXServerConfig xorg-dummy.conf
    ### xstatus
    ## This can be set to gnome, kde or x:
    ## For gnome you need zenity available.
    ## For kde you need dcop, kstart, kdialog available.
    ## For x you need to have xosd OR xmessage available.
    # XStatus gnome
    # XmessageDisable yes
    # XSuspendText Preparing to suspend...
    # XResumeText Resuming from suspend...
    ## When using XStatus x, and you have xosd installed:
    # XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
    ### xbacklight
    # BackLight yes
    ### gaim
    ## You need to have dbus, gaim_remote available.
    # LogoutGaim yes
    # GaimRestoreStatus yes
    # GaimLogoutMessage Hibernating
    # GaimLoginMessage Back from hibernation
    ### pidgin
    # LogoutPidgin yes
    # PidginRestoreStatus yes
    # PidginLogoutMessage Hibernating - bye!
    # PidginLoginMessage I'm back!
    ### SSH and PGP keys
    # AgentsClearGPG yes
    # AgentsClearSSH yes
    ### Virtualbox
    # SuspendVirtualbox yes
    Last edited by raining (2012-11-04 12:03:38)

  • Scripts for CS6 Scripting Guide

    The link in the PDF document "Adobe InDesign CS6 Scripting Guide:Javascript" is broken and I can't find the file with the example javascripts. 
    Can you help?
    /f

    http://www.adobe.com/devnet/indesign/documentation.html

  • Upgraded to VS 2013 - cannot edit script in SSIS script component

    I'm running SQL Server 2014 and just recently upgraded to Visual Studio 2013 from 2012. I was attempting to develop an SSIS solution today - the first time since the upgrade - and was blocked because I wasn't able to edit the script for a script component
    in an SSIS package.
    I can add the object to a data flow but clicking on the "Edit Script..." button yields no response whatsoever. No error, no scripting environment. 
    I'm running VS2013 Ultimate with SSDT 2013, and SS 2014 Enterprise. 
    My hunch is that there are components missing somewhere but I don't know enough about this platform to piece together how things are related. I have nearly every option installed for VS2013 except for Windows Phone and app store development.
    I didn't have an issue previously and I'm unsure how to debug this - especially since I'm not a real SDE. 
    Thanks in advance for your help

    Hi Torben E,
    Maybe that you were unaware that you post this issue in Visual Studio Setup and Installation forum. This forum is to discuss and ask questions about the install and setup of Visual Studio. Obviously, this case is out of the scope of this forum.
    I'm unsure which forum is better for this case. Is Visual Studio General forum? Or SQL Server Integration Services forum? But I'd like to find a suitable forum along with you.
    >>I was attempting to develop an SSIS solution today - the first time since the upgrade - and was blocked because I wasn't able to edit the script for a script component in an SSIS package.  
    I see that you upgrade to Visual Studio 2013 from 2012. And you didn't have an issue previously. Do you mean that you can create SSIS project and edit the script for a script component before you upgrade VS?
    >>ERROR: Cannot resolve reference coloader80.dll,processorArchitecture="X86",type="win32",version="1.0.0.0".
    From the error message, it seems that the IDE can't find the coloader80.dll. Can you find this dll in your PC? Does it exist in the path ""C:\Program
    Files (x86)\Microsoft
    Visual Studio 11.0\Common7\IDE\"?
    If you can find it, please try to register the oleaut32.dll as the thread below mentioned to see if this method can solve this issue.
    https://social.msdn.microsoft.com/Forums/en-US/68d89658-b35f-4828-a9b1-31cf5cfc7717/coloader80dll-and-critical-debug-error?forum=Vsexpressvb
    This error is caused by the registration for oleaut32.dll was corrupted, there maybe other dll that also named oleaut32.dll, so visual studio could not
    find the right oleaut32.dll.
    So please download the OleAutClean.msi in this link and run it, to clean all the registration of oleaut32.dll.
    http://download.microsoft.com/download/a/9/3/a93f06e7-5828-460c-a78b-ab89c77b6957/OleAutClean.msi
    Then register the oleaut32.dll again.
    1.     
    Right click the Commandline to run the commandline as administrator.
    2.     
    In the commandline, run the following command if you are using Win7 or vista.
    regsvr32 "%CommonProgramFiles%\microsoft shared\VS7DEBUG\coloader80.dll" . Then you will see a dialog that shows the registration
    successes.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes:Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufac

    I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes: Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufacturer for assistance. I am on a MacBook pro running 10.5.8 OS. Has anyone seen this before and how can I get it resolved.
    Thanks for your help in advance....

    Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
    Thanks!

  • What do the symbol and stand for in the following script? not like displa

    What do the symbol *>* and *>>* stand for in the following script? It is displacement? They do not like displacement symbols.
    $JAVA_HOME/bin/java -cp $CLASSPATH $JVM_OPT $SYS_OPT
    oracle.sysman.integration.coherence.EMIntegrationServer *>* $COHERENCE_
    HOME/mgmtnode.log *>>* $COHERENCE_HOME/mgmtnode.err &
    Thank you

    jverd wrote:
    BigDaddyLoveHandles wrote:
    But the example, if it's correct, seems to be using >> to redirect stderr, not to append stdout. The OP should identify what OS and what shell they are using.In any unix shell I'm aware of, > is overwrite and >> is append.Which is why he said "seems to be using >> to redirect stderr". Which I read to mean that BDLH also found it to be incorrect but some "corner-product" shell may do this sort of thing (not that I know, or have heard, of any that do). ;-)
    In a bourne family shell, the initial construct would cause stdout to replace the log file and append the err file, and would not redirect stderr.
    If you want to send stdout to one file and stderr to another, with overwrite, it'd be
    command > logfile 2> errfile
    Correct, of course. ;-)
    And, of course, changing either of those ">" symbols to ">>" would append (that stream), but you've already said that. ;-)

  • What do symbol ^ and stand for in the following script?

    What do symbol *^* and *>>>* stand for in the following script?
    Does *(int)* means that (temp ^ (temp >>> 32) return the int format?
    long temp = Double.doubleToLongBits(salary);
    result = PRIME * result + (int) (temp ^ (temp >>> 32));
    return result;
    Thank you very much

    jetq wrote:
    What do symbol *^* and *>>>* stand for in the following script?In Java, this is referred to as "code", script could be confused with Javascript, which is not Java at all.
    The previous reply will help you find all you need to know.
    Does *(int)* means that (temp ^ (temp >>> 32) return the int format?"format" refers to how a value is converted to text. (Sometimes how it is to be parsed as well)
    "(int)" casts the long value to an int value (signed 32-bit)
    long temp = Double.doubleToLongBits(salary);
    result = PRIME * result + (int) (temp ^ (temp >>> 32));This will treat -0.0 as being different to 0.0. If this is undesirable, you can do something like...
    long temp = aDouble != +0.0d ? Double.doubleToLongBits(aDouble) : 0L;
    result = PRIME * result + (int) (temp ^ (temp >>> 32));

  • I keep getting this message when wanting to download latest itunes software update :The following install step failed: run preupgrade script for AppleMobileDeviceSupport. Contact the software manufacturer for assistance. what can i do to download?

    The following install step failed: run preupgrade script for AppleMobileDeviceSupport. Contact the software manufacturer for assistance. what can i do to download software when the above message keeps popping up...not allowing me to download

    I had the same problem this weekend.  The iphone 4s needed Itunes10.5 to sync to her Asus Windows 7 Laptop.  When I tried to download from the Apple website I got the error that the windows installer was missings files or something like that.  I uninstalled itunes and tried again but that didn't work.  Then I redownloaded itunes 10.3 just to have a working version in case I gave up.  Then I found site that suggested I update Windows by going through the start menu and while doing that I found an update Apple itunes file. 
    Goto Start and type Widows Update in the seach window.  Click on check for updates (I already was current with all updates but I suggest you download the updates if there are some available.
    Goto start and this time just type update in the search window.  Look for the Apple itunes update link and click on it.  It found there were updates for itunes 10.5, Quick time, Safari, and Icloud.  I checked all the updates except for Safari, since we don't use it (yet).
    The install started then seemed to stall at one spot for ~3min but then completed successfully.  I open itunes and had her synced with Outlook Contact, Email, Calender, and Notes in 5 minutes.  I did already configure Outlook by going to tools and Trust Center.
    I hope this works.

  • When I try to install an iTunes upgrade I get this message: The following install step failed: run preupgrade script for AppleMobileDevice Support.

    When I try to install upgrades for itunes on my Mac, I get the following message: The following install step failed: run preupgrade script for AppleMobileDevice Support.  When this happened before I trashed itunes and started over, but I don't want to have to do that everytime i install an upgrade.

    C,
    I ran into the same issue. Make sure your apple device in disconnected from the computer. It interrupts the itunes download. Disconnect and make sure itunes is closed, then try installing again. Remember that even though you close of itunes, it is often still running in the background. To make sure it's closed, click and hold the mouse on the itunes icon and select quit from the drop down menu. Then try installing the updated itunes.
    Hope that helps.
    SoEreal

  • The following install step failed: run preupgrade script for AppleMobileDeviceSupport. Contact the software manufacturer for assistance.

    Just upgraded software. When system prompts to update itunes and in the middle of the system's attempt to complete the upgrade, the message, "The following install step failed: run preupgrade script for AppleMobileDeviceSupport. Contact the software manufacturer for assistance" appears.
    I don't understand what "preupgrade" needs to be done.
    Anyone else experience this?
    Suggestions?

    -= Pre Upgrade Script Error with iTunes =-
    Do a general web search and you will discover there are many answers, none definitive.
    iTunes: How to remove and reinstall the Apple Mobile Device Service on Mac OS X 10.6.8 or Earlier - http://support.apple.com/kb/ht1747
    scarier:
    https://discussions.apple.com/message/10464515#10464515

  • The following install step failed: run preupgrade script for AirPortUtility. I have been getting this error whenever I try to do a software update on anything.

    Each time I try to run a software update... I am getting these error messages so I am never able to upate.
    The following install step failed: run preupgrade script for AirPortUtility

    =Pre Upgrade Script Error with iTunes=
    Do a general web search and you will discover there are many answers, none definitive.
    iTunes: How to remove and reinstall the Apple Mobile Device Service on Mac OS X 10.6.8 or Earlier - http://support.apple.com/kb/ht1747
    scarier:
    https://discussions.apple.com/message/10464515#10464515

  • I have tried to upgrade Painter 11 on my iMac running OS X 10.5.8. I keep getting the error message :- : The following install step failed : run pre install script for Corel Painter11 _ SP1 . Contact the software manufacturer for assistance   " Help pleas

    I have tried to upgrade Painter 11 on my iMac running OS x 10.5.8 but get the error message : The following install step failed : run pre install script for Corel Painter11_SP1. Contact the software manufacturer for assistance "
    I have contacted Corel and after several emails and one telephone call, they tell me , they cannot help but they think the problem could be with the OS.
    Does anyone have any suggestions, please ?

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • Caznnot upgrade my iTunes to version 10.4.1---get message---The following install step failed: runupgrade script for Apple mobile device support.--Contact softwae=re manufacturer for assistance

    Cannot upgrade my iTunes to version 10.4.1---get message---The following install step failed: runupgrade script for Apple mobile device support.--Contact softwae=re manufacturer for assistance.
    Can someone help me?
    Thank you.
    Gerald

    me too did you get any help?

  • Cannot upgrade my iTunes to version 10.4.1---get message---The following install step failed: runupgrade script for Apple mobile device support.--Contact softwae=re manufacturer for assistance.   Can someone help me? Thank you.   Gerald

    Cannot upgrade my iTunes to version 10.4.1---get message---The following install step failed: runupgrade script for Apple mobile device support.--Contact softwae=re manufacturer for assistance.
    Can someone help me?
    Thank you.
    Gerald

    me too did you get any help?

Maybe you are looking for

  • Key field not available in report

    Hi, I have a DSO and in that I have 1 key field and 20 data fields. I was able to load the data successfully in the DSO. And I am creating a report based on this DSO. But when I create a report, I was unable to view the key field in the report. I wen

  • Seriously, Nokia what are you playing at?

    I know there are aleady countless threads about the battery life but I really want a proper response from anyone on here who can speak for nokia? WHY are you washing your hands of "battery issues " after this latest update when there are clearly so m

  • Can not connect Weblogic App Server 10.3 from Jdeveloper 10.1.3.5

    Hi Friends, I am trying to connect JDeveloper 10.1.3.5 to WebLogic server 10.3. I am facing some problems. I used JDeveloper 11g to do the same and it worked. I found that JDeveloepr 10.1.3.5 does not have any wizard for Weblogic 10.3 connection, all

  • HELP! No utilities folder on my mac

    Hi. I can´t understand how the utilities folder in my G5 PCC is probably deleted.... I´m triying to reinstall but since there is not installer or disc utilities the computer says always "restart to begin the installation". What can I do ?

  • Front Row versus iTunes

    Upgraded my G5 dual 1.8 tower to Leopard. Couldn't wait to use Front Row on the 30" Apple Cinema Display. Heart-broken to discover that all my movies and tv shows from my iTunes library are practically unwatchable when played through Front Row. The v