Statspack - Installation scripts for 8.1.7 database
I'm want to install Statspack on an Oracle 8.1.7 database running on a HP-UNIX server. In an Oracle 8.1.6 database the scripts are located at $ORACLE_HOME/rdbms/admin. Any help would be appreciated.
Perhaps this Q better belongs at the db forum
General Database Discussions
SP should already be installed on 8.1.7. Read $ORACLE_HOME/rdbms/admin/spdoc.txt
Similar Messages
-
Installation script for installing tables
I am trying to create a packaged application .(package include app, themes, images , shared components and underlying tables)
something similar to the lines of package application samples available here
http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html
Please let me know if there is a way to create installation scripts for tables+sequences+triggers+data.
Appreciate itThese are MS Windows patches, say for server 2012.
this is a simple batch file am using for monthly patches. But now there are servers in staging area of DC which are required to patch with all missing patches from last 1year or so. We got all the patches in to a folder, and need to run against each server.
================================
SC QUERY state= all | findstr "DISPLAY_NAME | STATE" > C:\Services_Before_Reboot_Dec_14.txt
# will grab service beofore reboot
Windows8.1-KB2992611-x64.msu /quiet /norestart
Windows8.1-KB3008923-x64.msu /quiet /norestart
Windows8.1-KB3011780-x64.msu /quiet /norestart
Windows8.1-KB3013126-x64.msu /quiet /norestart
Pause
===================
Cheers, Ramakrishna Darla. -
XI 2.0 installation script for creating XI Sandbox Demo System
Does any have a Windows2000 XI 2.0 installation script designed to create minimal XI Sandbox? Brief installing instructions.
Hi Dan
There is no Installation Script for XI-2.0. The document you have to check is the XI 2.0 installation guide.
Regards
Prasad
SAP Netwaver RIG-XI
SAP Labs LLC, USA -
YAIS - Yet Another Installation Script for Archlinux
I wrote this script today and placed it in AUR. It can show you the way and make it easier to install an archlinux system.
orschiro wrote:
https://aur.archlinux.org/packages/yais/
Can you provide some more information?
Your README is not very extensive:
yais
Yet another installation script (for archlinux)
I updated the README, and added a TODO to the git repo. I also rewrote the PKGBUILD. It will be OK now. -
Script for getting mail if database is down
Hi Friends,
OS Version : IBM AIX 5,2
Oracle version : 9.2.0.7
I am executing the following script for getting mail alert if database is down. some how the script is not working
check_stat=`ps -ef|grep ${ORACLE_SID}|grep pmon|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -lt 1 ]
then
exit 0
fi
# Test to see if Oracle is accepting connections
$ORACLE_HOME/bin/sqlplus -s "/as sysdba" > /tmp/check_$ORACLE_SID.ora
select name from v$database;
exit
# If not, exit and e-mail . . .
check_stat=`cat /tmp/check_$ORACLE_SID.ora|grep -i error|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -ne 0 ]
then
mailx -s "$ORACLE_SID is down!" [email protected] < /tmp/check_$ORACLE_SID.ora
exit 16
fi
I am saving this as .sh file and executing at command prompt. It is just hanging, but not throwing any error.
I would like to know if there is anything to be modified in the script or please provide me any such script. Thanks in advanceHI there.
I have a script I use that works really well. It sends out an email only if the database is down and also reads an ini file to process a blackout period and a priority level of the database... High priority databases are monitored every 5 minutes and Medium priority databases every hour.
There are two scripts, the shell script and the .ini file and I have two cron entries...
Check script:_
#!/bin/ksh
# check_oracle_status.sh
# Script to check if Oracle db's are up and running.
# Script is passed a priority field and reads check_oracle_status.ini
# to determine which db's to check. If db is down an email is sent.
# Priority Levels:
# H - Checks db's with "H"igh Priority every 5 minutes (cron)
# M - Checks db's with "M"edium Priority every hour (cron)
# L - db's with "L"ow Priority currently not checked
# Script Change History:
# ======================
# October 29th, 2009 - Initial Creation
# Set environment
export SCRIPTHOME=/opt/oracle/admin/scripts
export INIFILE=$SCRIPTHOME/check_oracle_status.ini
export PRIORITY=$1
. $HOME/.profile
db=`grep -i ":$PRIORITY" $INIFILE | cut -d":" -f1`
check_database()
sqlplus <<! > $SCRIPTHOME/check.out
/ as sysdba
select * from dba_data_files;
exit
grep ORA- $SCRIPTHOME/check.out > $SCRIPTHOME/error.out
if (( $? )); then
echo ""
else
mailx -s "Oracle instance $i is currently UNAVAILABLE" +<email address>+ < $SCRIPTHOME/error.out
fi
for i in $db ; do
fields=`grep $i $INIFILE | awk -F':' '{ total = total + NF }; END {print total}'`
export ORACLE_SID=$i
if [ $fields -gt 2 ]; then
BLACKOUT_START=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f3`
BLACKOUT_END=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f4`
CURRENT_HOUR=`date +%H`
CHECK_BASE=YES
if [ $BLACKOUT_START -gt $BLACKOUT_END ]; then
(( $CURRENT_HOUR >= $BLACKOUT_START || $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
else
(( $CURRENT_HOUR >= $BLACKOUT_START && $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
fi
if [ -n "$CHECK_BASE" ]; then
check_database
fi
else
check_database
fi
done
rm $SCRIPTHOME/check.out $SCRIPTHOME/error.out
INI File:_
oracle1:L
oracle2:M:17:08
oracle3:M
oracle5:M:17:08
oracle6:H
oracle7:M:17:08
oracle8:M
oracle9:M
Where oracle1,2,3 etc is your sid
L M and H your priority level
17 is blackout start (5 PM)
08 is blackout end (8 AM)
Note: Blackout is just a start hour and an end hour and must contain both or none and my script can only process one blackout per database. I guess if you
needed a second blackout you could add another line with different times for that sid
Cron entries:_
# Check Oracle Status
# The check_oracle_status.sh script monitors "H"igh priority databases every 5 minutes
# and "M"edium priority databases every hour
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh H > /dev/null 2>&1
0 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh M > /dev/null 2>&1
Not sure if you require blackouts or priority levels but this setup works great at our site.
Hope this helps. -
Scripts for run after creating database
HI,
now when 10xe universal installer create database with unicode characterset we are all unabled to run Form6i (forms 6i does not support AL32UTF8) on xe.
I would like to try to create database using EE8MSWIN1250 but I am not sure what scripts I have to run after create database on windows XP professional OS.
Is there any list ?
What else I have to check or run after creating database ?connect ... as sysdba
@c:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\catalog.sql
@c:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\catblock.sql
@c:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\catproc.sql
@c:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\catoctk.sql
@c:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\owminst.plb
connect system
@c:\oraclexe\app\oracle\product\10.2.0\server\sqlplus\admin\pupbld.sql
@c:\oraclexe\app\oracle\product\10.2.0\server\sqlplus\admin\help\hlpbld.sql helpus.sql
I execute that scripts and it's look like that everything working well except that I can't access Database Home Page.
Any sugestion what I should look for. -
Script for dropping aand recreating Database
Please someone tell me that dropping a database in Cluster environment is same as in standalone server? Please let me know asap. If someone know how I would recreate the same database. Thnx
The best way to recreate the database is using te DBCA. In case you are doing it manualy then it depends on:
Case 1:
The ORACLE_HOME and name of the database being created is same as of the database being dropped
- Drop the database (don't delete the init.ora file as you can reuse this if everything is going to be same for the new database)
- Recreate the database or contolfile for the new database.
Case 2:
The ORACLE_HOME and name of the database being created is diferent as of the database being dropped
- Drop the database
- Remove the database from the Oracle Cluster Registry using SRVCTL command.
- Recreate the database or contolfile for the new database.
- Register the database in Oracle Cluster Registry using SRVCTL
Thanks & Regards -
How to automate creating installation script?
SQLDeveloper has a nice tool which would create installation script for a database application: Deploying an Oracle Database Application However it is not automatic - you have to choose objects to export and tables to dump rows every time you create an export script. Is there a way to automate it or maybe another tool to create an installation script? I though of Introducing oraddlscript | devioblog but it doesn't seem to create a file invoking creating all other objects in the appropriate order. Oracle exp tools are also inappropriate because I need a seperate file for each object so that I could commit them to SVN and keep track of changes.
DDL Wizard Seems fine, but it required Oracle export using exp. And exp cannot export tables with BINARY_DOUBLE columns or nested tables. And installing Oracle Database link is not about installing application.
-
Solution (not question :-) ): Apex Installation Script
i´ve asked so may question here, and got (most of the time) fast and helpfull answers, so that´s the time to do something for the community:-)
i´ve written an installation script for Apex 3.1 / 3.1.1. It has two Parts. First Part ist the main script to install all the necassary scripts (and there are a lot). The second one (installcheck_apex.sql) is a PL/SQL Block that checks all requirements and shows the output, you should consider/change. And the script can change all parameters/ports/accounts ...
But it is very long (320 Lines of Code) If somebody needs it, i post it also
Remarks are in German\English
All comments are welcome :-)
Kind regards
Marco Patzwahl
MuniQSoft GmbH
REM ##################################################
REM Oracle APEX Beispiele von Marco Patzwahl
REM MuniQSoft GmbH 2007/2008 Automatische Installation von Apex 3.1.1
REM Automatic Installation of all necessary Apex Scripts
REM Version 2.1 22.07.2008
REM ##################################################
@ECHO OFF
REM ##################################################
SET APEX_PATH=D:\apex_3.1.1
SET SERVER_NAME=127.0.0.1
SET ORACLE_SID=o10g
SET ORACLE_CONNECT=%SERVER_NAME%:1521/%ORACLE_SID%
SET ORACLE_SYS_PWD=sys
SET ORACLE_CTXSYS_PWD=sys
SET FLOWS_USER=FLOWS_030100
REM IF HTTP_PORT<>0 the PL/SQL HTTP Gateway is installed !!!!!
SET HTTP_PORT=8080
SET ADMIN_PWD=ADMIN
REM Mögliche Spracheinstellungen/Possible Langues: de, es, fr,it,ja,ko,pt-br,zh-cn,zh-tw
SET APEX_LANGUAGE=de
SET NLS_LANG=GERMAN_GERMANY.AL32UTF8
SET APEX_RUNTIME_ONLY_INSTALL=TRUE
REM ##################################################
IF NOT exist %apex_path%\apex goto dir_problem
cd %APEX_PATH%\apex
dir
echo "Starte Installationsskript ..... / Starting script"
REM Prüfung der Installationsvoraussetzungen / Check Prerequisites (Possible Parameters: 'CHECK','INSTALL:<pwd>:<port>:<flows_user>','DROP','RECOMPILE')
REM This Option drops the APEX User with all Apex Applications !!!!!
REM sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\installcheck_apex.sql DROP
REM Installationsvoraussetzungen prüfen / Check requirements
sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\installcheck_apex.sql CHECK
REM Oracle DataMining installieren / Install Oracle Datamining (if you like):
REM sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @?\dm\admin\dminst.sql SYSAUX TEMP;
REM Oracle Text installieren / Install Oracle Text (if you like):
REM sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @?\ctx\admin\catctx %ORACLE_CTXSYS_PWD% SYSAUX TEMP NOLOCK;
REM sqlplus "ctxsys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @?\ctx\admin\defaults\dr0defin.sql "GERMAN";
REM Oracle Lock Views installieren / Install Oracle Lock Views (if you like):
REM sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @?\RDBMS\ADMIN\catblock.sql
REM Hauptskript für die Installation / Basic Skript for Install (3.1 and 3.1.1)
sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\apex\apexins SYSAUX SYSAUX TEMP /i/
REM Zusaetzliche Schritte nach einer Installation / Misc Additional Steps
sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\installcheck_apex.sql INSTALL:%ADMIN_PWD%:%HTTP_PORT%:%FLOWS_USER%
REM Installation des WEB-Gateway ( Bei Frage nach dem Wert für imgupg / If asked for value of imgupg =>Return )
REM Das Skript muss mit EXIT beendet werden => grmpf / Script needs a exit command at the end =>%?!$§/&%$§"
IF "%HTTP_PORT%"=="0" GOTO no_epg
sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\apex\apex_epg_config %apex_path%
:no_epg
REM Wird nur eine Runtime Installation gewünscht? / Only Runtime Installtion of APEX
IF "%APEX_RUNTIME_ONLY_INSTALL%" == "FALSE" GOTO firefox
sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\apex\apxdevrm
:firefox
"C:\Programme\Mozilla Firefox\firefox.exe" 127.0.0.1:8080/apex
REM "C:\Programm Files\Mozilla Firefox\firefox.exe" 127.0.0.1:8080/apex
REM Änderungen der Menue-Sprache von APEX / Language File
IF "%APEX_LANGUAGE%" == "us" GOTO end_of_apex
sqlplus "sys/%ORACLE_SYS_PWD%@%ORACLE_CONNECT% as sysdba" @%apex_path%\apex\builder\%APEX_LANGUAGE%\load_%APEX_LANGUAGE%.sql
:dir_problem
echo "## Fehler: Verzeichnis APEX existiert nicht unter / Error: Directory not available"
echo %apex_path%
:end_of_install
EXIT
Message was edited by:
mpatzwahYou don't really have to, but if you want to use APEX with those multiple instances, it'll make
life much easier - you don't want to keep the data in one database instance and your (APEX) application code in another and get the data over a link.
But you only need one Instance of Oracle HTTP Server with multiple dads configured, not one
HTTP Server per Instance.
Regards
Holger -
RMAN script for hot backup (looking for code critic) code attached.
Hello Guru's,
I have been having soem trouble running a successful hot full rman backup nightly.
We max our CPU load whenever our RMAN takes too long and conflicts with a Legato tape backup. I have a development server that I attempted to get a consistent backup time duration that is rock solid as to not conflict with the Legato backup time.
I just found out about duration with RMAN scripts here is my code:
#!/bin/bash
#rman backup script for daily hot whole database backup
at -f /hd1/rman_scripts/rman_backup 0600 tomorrow
rman target/
run {
allocate channel d1 device type disk format '/path/%U';
backup duration 1:00 partial minimize load database filesperset 1;
backup as BACKUPSET tag '%TAG' database;
backup as BACKUPSET tag '%TAG' archivelog all delete all input;
delete noprompt obsolete;
release channel d1;
exit
It completes the backup, but does not use the 1 hour allocated- it only uses 15 minutes on average and creates many files instead of normally three backup files.
Here is the results from querying the v$rman_status table for operation,status,start_time:
RMAN,FAILED, 17-OCT-06 0600
BACKUP,FAILED,17-OCT-06 0600
RMAN,FAILED,17-OCT-06 0606
BACKUP,COMPLETED,17-OCT-06 0606
BACKUP,COMPLETED,17-OCT-06 0606
BACKUP,FAILED,17-OCT-06 0615
RMAN,COMPLETED,17-OCT-06 1513
REPORT,COMPLETED,17-OCT-06 1513
DELETE,COMPLETED,17-OCT-06 1513
However, the timestamps of the backupset files it creates is:
06:15 and not 1513?????????????
RMAN appears to have only taken 15 minutes to create the files, why do I have a completed timestamp from v$rman_status of 1513???
Please advise and comment, I am just learning RMAN.Try to remove the DURATION option in your script.
Here more details about that part.
http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1010261
Bye, Aron -
How to create installation scripts in packaged application
can u tel me How to create installation scripts for packaged application.
also tell me , i have to first install scripts and then supporting objects or
supporting objects first then installation scripts..Hi,
Depending upon your usecase there are different ways to implement this logic.
Check this for example (Read my answer in this post):
https://forums.sdn.sap.com/thread.jspa?threadID=349151
Also check these senarios:
http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddf20bb211d72e10000000a1553f6/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddcc9bb211d72e10000000a1553f6/frameset.htm
Also the delegation may be interesting for you:
http://help.sap.com/saphelp_nw70/helpdata/en/a0/44b742cafec96ae10000000a155106/frameset.htm
Greetings,
Praveen Gudapati -
Oracle installer scripts in Delivery wizard is disabled in Project builder
Hi,
I have oracle forms 6i installed on my system. However, I was trying to builld installer scripts for my project. So I open the deliver wizard in Project builder. Select all the parameters, like project name/directory etc.and then when I reach the option of creating installer scripts, it is disabled while the others like,
Deliver to local staging, Deliver to a remote staging etc is enabled.
Any ideas, why I the installer scripts are disabled.?
thnx
SSoe more.
I read in the Oracle manual under the Guidelines for Building Applications
in the section Managing Your Application the following statement about project builder:
"Remember that you can automate the running of test scripts just as you can automate actions associated with the modules in your application.
How would one do this???
Thanks!
Liza -
Can't change default installation directory for silent installation of Flash Builder 4.5
Hello,
I'm trying to create a custom installation script for Flash Builder 4.5 in silent mode.
I have created a flash builder msi installer using "Adobe Application Manager Enterprise Edition".
I would like to change the default installation directory during silent installation.
Could you please help ?
Thank you in advance.
Best regards,
RyadThe install.xml in the "Adobe Flash Builder 4.5 Installer/deploy" folder will have the INSTALLDIR property. You can change this property to your custom location.
<?xml version="1.0" encoding="UTF-8"?>
<Deployment>
<Properties>
<!--Note that the INSTALLDIR value is machine specific. The value below is a suggested default value but may need to be overriden.-->
<Property name="INSTALLDIR">C:\Program Files\Adobe</Property>
</Properties>
<Payloads>
</Payloads>
</Deployment>
Thanks
Unni G S -
Does anyone know where to find a comprehensive documentation of Oracle Installer scripting (for Windows)?
I'd like to deploy my Developer (6.0) app with Oracle Installer (using Oracle File Packager).
I must modify the code it generates but I can't really find a good and comprehensive doc for it.
Thanks,
ZsDoes anyone know where to find a comprehensive documentation of Oracle Installer scripting (for Windows)?
I'd like to deploy my Developer (6.0) app with Oracle Installer (using Oracle File Packager).
I must modify the code it generates but I can't really find a good and comprehensive doc for it.
Thanks,
Zs -
How to delete "installation scripts"
Hi All:
Under Support Objects ==> Installation Scripts, is there a way to delete any existing "installation script" entry?
I can't find an easy way to do it. Or maybe APEX is not allowing deleting installation script after you create the entry?
Thanks!
KevinOn the page where you see installation scripts, for each entry there are 2 links. First one is the edit icon, this takes you to the script editor. From here, you can change to the Script Properties tab, and click Delete. Else, the other link is the name of the script, and this takes you directly to the script properties tab, where you can delete it. i.e. Click delete, then confirm delete.
Ta,
Trent
Maybe you are looking for
-
I am asked to install this update by an educational website. The sequence of events is: 1. Message appears at interactive site on page "A plugin is needed to display this content." along with an Install Plugin button. 2.Pressing the install button br
-
IPod Nano Screen is blank and dosen't turn on or off.
I leave my ipod nano on for 2 seconds. Screen turns blank and dosen't turn on or off. iTunes dosen't recognize it. Nothing I do works. Charging dosen't work. iPod, however seems to be on sleep mode.
-
Excise asset tranfer from one plant to another within the company code
Hi All, Please provide me the procedure how to transfer an asset from one plant to another. The asset is an excisable pls provide the process for accounting in SAP for movement of FA on which we have taken excise duty and further we have to pay duty
-
How to share contact including photo between iPhones?
I tried iMessage and e-mailing a vCard, but neither method transfers the contact along with their photo between an iP5 and an iP4. What is the correct method?
-
Parse a String with FIRSTNAME MI and LASTNAME but not always a MI
Anyone, can I write a single clause to parse a column that cotains first name, middle initial and Last name but the Middle initial is sometimes there and sometimes not? Like this: Steven F Abbott Mikel Allums (Steve) Pedro A Arroyo Daniel R. Hasbrook