Check this out
http://app.com:8000 /OA_HTML/fndvald.jsp?username= &password=pass
Check this out
http://app.com:8000 /OA_HTML/fndvald.jsp?username= &password=pass
1.connect to the catalog database
a)here create a catalog tablespace
sql> create tablespace catalog
datafile ‘/……………………/catalog01.dbf’ size 250 m
b)create a user for recover catalog
sql> create user rmancat identified by rman
default tablespace catalog
default temporary tablespace temp
quota unlimited on catalog;
c)Grant the appropriate privilages.
sql>grant connect,resource,recover_catalog_owner to rmancat;
2. Login to the operating system
export ORACLE_SID=catalog
rman
rman> connect catalog rmancat/rman
rman>create catalog tablespace “CATALOG”
rman> exit
3.log in to the Operating system
export ORACLE_SID=sample
rman
rman> connect target sys/sys
rman>connect catalog rmancat/rman@catalog
rman > register database.
Now you configured your catalog database….
More detailed documents can be found at
http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/toc.htm
Installation
Method 1: Install agent from local file with silent mode.
This is the fastest method to install agent. Take 11.1.0 agent for example.
1) download Linux_Grid_Control_agent_download_11_1_0_1_0.zip from /ade_autofs/shiphomes_linux/em/11.1.0/100227/agentdownload_only/ , you can execute command in host emqa1-vm9.cn.oracle.com as below
scp -rvp aime@stsdc02-1.us.oracle.com:/ade_autofs/shiphomes_linux/em/11.1.0/100227/agentdownload_only/download Linux_Grid_Control_agent_download_11_1_0_1_0.zip /home/oracle/
2) extract the zip file to local folder, unzip Linux_Grid_Control_agent_download_11_1_0_1_0.zip -d ./agent
3) prepare the additional_agent.rsp file. modify the rsp file as below, the values depend on oms information.
SECURITY_UPDATES_VIA_MYORACLESUPPORT=False
DECLINE_SECURITY_UPDATES=True
SKIP_SOFTWARE_UPDATES=True
ORACLE_AGENT_HOME_LOCATION=”/scratch/aime”
OMS_HOST=smptst-svc1.us.oracle.com
OMS_PORT=1159
AGENT_REGISTRATION_PASSWORD=agent4321
4) install agent with silent mode.
$cd agent_install_home/linux/agent
$./runInstaller -silent -responseFile ~/additional_agent.rsp
5) after installation finished and successfully, run root.sh under agent_home directory
Method 2: Install agent using agent push on oms deploy page.
1) Go to GC console page , click on Deployments, then click on Install Agent under Agent Installation, Click on Fresh Install.
2) Provide the host where you want to install the agent, the credential, Install_dir. Leave port blank ,then it will use a random port so that it won’t fail if the default port 3872 used. Remember provide the Management Server Registration Password and then click on next to the end.
Method 3: Install agent using NFS Agent Installation.
Suppose there is agent installed on emqa1-vm1.cn.oracle.com, the agent_home is /scratch/aime/agent11g , this need get installed on vm9.
1) mount emqa1-vm1.cn.oracle.com:/scratch/aime/agent11g /scratch/aime/agent11g . verify that the folder path is same as the agent_home in vm1.
2) $cd /scratch/aime/agent11g/sysman/install
$./nfsagentinstall -s /scratch/state_dir
3) then the agent will be installed to /scratch/state_dir , you can use emcli start/stop/status agent under /scratch/state_dir/bin
Method 4: Install agent using OUI.
Make sure that the agent installation file is released or it can be installed by oui. It’s the easiest method to install agent.
1) access the host via vnc and then run the runInstaller .
2) provide the information according to the oui and then it’ll be installed successfully.
Configuration
This part describes how to change agent pointing to another oms without re-install.
1) make sure you stop the agent. check the status of agent, /agent_home/bin/emctl status agent , stop the agent /agent_home/bin/emctl stop agent
2) cd agent_home/sysman/emd , delete all files under upload and state
3) cd agent_home/sysman/config , vi emd.properties , modify REPOSITORY_URL and emdWalletSrcUrl .
4) /agent_home/bin/emctl start agent
agent_home/bin/emctl secure agent, provide the register password
agent_home/bin/emctl upload agent
make sure the three command above executed successfully
5) then you’ll see your agent pointing to the new oms.
Oracle WebLogic Server 10.3.2 or higher is required to be installed on the host in which you are going to install Enterprise Manager Grid Control.
The Oracle Database for the repository needs to be Oracle Database 10gR2 (10.2.0.4) or higher. The UNDO table space must have at least 200MB allocated at the time of install. The parameter SESSION_CACHED_CURSORS
must be 200 or greater and the parameter PROCESSES
must be 500 or greater. If these parameters along with the UNDO
table space size are not set at the time of installation they will produce errors on Step 7 Connect to Oracle Database. If the database was created with Database Control enabled you will need to remove the Database Control repository.
To start the installation process execute the runInstaller
script.
Enter your My Oracle Support user name and password to set up security update notification and initiate configuration manager. This information is option. Click the Next button to continue.
It is possible to install patches/updates during the installation process. If you choose to apply patches/updates you can either get them on demand using your My Oracle Support login credentials or you can download the patches/updates prior to installation and store them in a central location. After making your choices click the Next button to continue.
You can either install a new Enterprise Manager system or add an addition management server. Both install options require an existing certified Oracle WebLogic server. For this document we are going to install a new Enterprise Manager system. Click the Next button to continue.
Next are the standard prerequisite checks that are common with Oracle software installs. Click the Next button to continue.
The installer should pickup the location of the middleware home that was used for the installation of Oracle WebLogic Server. If the installer does not find middleware home either type in or browse to the location that contains the Oracle WebLogic Server. You can also provide another location for the Oracle Management Service. Click the Next button to continue.
The installation process will create a WebLogic domain called GCDomain all that we need to provide is the password. Click the Next button to continue.
Now we need to provide the install the connection information for the database to be used as the repository. Provide the hostname, port, SID and SYS password for the database you are going to use for the Grid Control Repository. Click the Next button to continue.
Three table spaces are created to house the Enterprise Manager Grid Control repository. You can either accept the defaults for the data files or provide names that match your naming scheme. You also need to provide a password for the SYSMAN
user.
Enter the password to be used to secure the communications between the agents and management service. You can also choose to only allow secure agents to communicate with the repository and to only allow secure access to the console. Both are set by default.
You have the ability to customize the ports used by Enterprise Manager to fit in your environment. Click the Next button to continue.
The Review screen is your last chance to make any changes to previous steps before starting the installation. Click the Install button to start the installation.
Installation steps and progress are displayed on the Install Progress screen.
At the end of the installation you will be asked to run a configuration script as the root user. In a terminal session connect as the root user and run MW_HOME/weblogic/oms11g/allroot.sh
. Note I chose not to overwrite any files.
[root@gc ~]# /u02/app/oracle/product/weblogic/oms11g/allroot.sh
After the scripts are complete click the OK button to continue.
Next several configuration assistants will be executed.
After the entire configuration is complete you will get the Finish dialog that will detail the installation and provide the URL to access Enterprise Manager Grid Control.
Possible Errors
Step 7 of 13 Connect to Oracle Database
If the database you are going to use as a repository is configured with Database Control you will receive an error message like the one below.
If you do get this error, click the OK button to dismiss the error and open another terminal session and run the $ORACLE_HOME/bin/emca – deconfig dbcontrol db command
. Note: If your repository database is in a RAC cluster you will need to add –cluster
after –repos drop
.
[oracle@gc ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD password -SYSMAN_PWD password
After removing database control from the database you may receive another error such as the one below.
The database to be used as the Grid Control repository needs to have the parameters SESSION_CACHED_CURSORS
set to 200 or greater and PROCESSES
set to 500 or greater. Setting these parameters will require the database to be bounced in order for the changes to take effect. Click the OK button to dismiss the error and connect to the database to change the parameters.
SQL> alter system set session_cached_cursors=200 scope=spfile;
SQL> alter system set processes=500 scope=spfile;
SQL> shutdown immediate
SQL> startup
SQL>
select
file_name
from
dba_data_files;
FILE_NAME
---------------------------------------------------
/u02/app/oracle/oradata/gcrepo/users01.dbf
/u02/app/oracle/oradata/gcrepo/undotbs01.dbf
/u02/app/oracle/oradata/gcrepo/sysaux01.dbf
SQL>
alter
database
datafile
'/u02/app/oracle/oradata/gcrepo/undotbs01.dbf' resize 400M;
Database
altered.
SQL> select count(*),status from wf_notifications group by status;
COUNT(*) STATUS
---------- --------
1530 CANCELED
1627 CLOSED
15266 OPEN
SQL> select count(*),status, MAIL_STATUS from wf_notifications group by
2 status, MAIL_STATUS order by status;
COUNT(*) STATUS MAIL_STA
---------- -------- --------
5 CANCELED ERROR
1031 CANCELED MAIL
427 CANCELED SENT
67 CANCELED
1 CLOSED ERROR
40 CLOSED SENT
1586 CLOSED
1 OPEN ERROR
1131 OPEN MAIL
3101 OPEN SENT
11033 OPEN
update wf_notifications
set mail_status = 'SENT'
where status = 'OPEN';
commit;
$FND_TOP/sql/wfrmitms.sql (to delete status information in Oracle Workflow runtime tables for a particular item type),
$FND_TOP/sql/wfrmitt.sql (to delete all data in all Oracle Workflow design time and runtime tables for a particular item type).
and $FND_TOP/sql/wfrmall.sql (to delete all data in all Oracle Workflow design time and runtime tables for all item type).
Как Создать Physical Standby базу в ORACLE 9i
Step 1 :
Добавляем следующие параметры в init<SID>.ora на primary базе данных
log_archive_dest_1 = 'LOCATION=/u01/oracle/pr/prdb/arch MANDATORY'
log_archive_dest_state_1 = ENABLE
log_archive_start = TRUE
log_archive_dest_2 = 'SERVICE=STBY2','ARCH SYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 reopen=60 register’
Или ( Просто добавить tns запись для STANDBY базы)
log_archive_dest_2 = 'service="(DESCRIPTION=(ADDRESS_LIST = (ADDRESS=(PROTOCOL=tcp)(HOST=app2.tidici.com)(PORT=1526)))(CONNECT_DATA=(SID=pr)(SERVER=DEDIC ATED)))"','ARCH SYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 reopen=60 register '
standby_file_management=auto
# archive_lag_target = 1800 ( этот параметр используется для автоматического переключения archive log на primary базе. Значение в переделах от 0 до 7200 секунд )
log_archive_dest_state_2 = ENABLE
#log_archive_dest=/home/oracle/proddata/arch (Закомментировать этот параметр на primary базе)
Step 2 :
Добавляем в tnsnames.ora на primary базе
STDBY2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = gc.tidici.com)(PORT = 1526))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME =pr)
)
)
Step 3 :
Редактируем init
fal_client = 'fal_stdby2'
fal_server = 'fal_prod'
standby_file_management = AUTO
control_files=/home/users/PROD/m3stndby.ctl
standby_archive_dest = '/ms11/archm3/m3'
log_archive_dest = /ms11/archm3/m3
log_archive_start = true
#db_file_name_convert = ('/u06/','/u06e/','/u07/','/u07e/') -> Использовать если отличаются калаги standby базы то primary базы
#log_file_name_convert = ('/u06/','/u06e/','/u07/','/u07e/') -> Использовать если отличаются калаги standby базы то primary базы
Step 4 : (a).
Редактируем tnsnames.ora на standby базе
fal_prod =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)(HOST = db.tidici.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME=pr)
)
)
fal_stby2 =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)(HOST = app2.tidici.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pr)
)
)
(b). Редактируем listner.ora на standby базе
FAL_stby1 =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)(HOST = 192.168.20.180)(PORT = 1530)
)
)
SID_LIST_FAL_stdby =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = PROD)
(ORACLE_HOME = /ms10/oracle/9.2.0)
(SID_NAME = PROD )
)
)
Step 5 :
(a) . Switch one archive on the primary
alter system switch logfile;
(b). Теперь переведём tablespace на primary базе в backup режим
[ Если необходимо создать базу из hot backup ]
select ' alter tablespace '||tablespace_name||' begin backup ;' from dba_tablespaces where CONTENTS <> 'TEMPORARY';
alter tablespace esvc begin backup ;
alter tablespace samora begin backup;
………………………………………
………………………………………
………………………………………
Выполните команду приведенную выше . Она переведет все tablespace в backup режим.
Перед копированием файлов на standby базу. Проверяем статус.
select status,count(*) from v$backup group by status;
STATUS COUNT(*)
----------------- --------------
ACTIVE 29
(b) . Копируем все datafiles c primary базы на standby базу
scp oracle@192.168.14.32:/u06/oracle/pr/prdata/a_txn_data14.dbf /u06/oracle/pr/prdata/
(d). Теперь возвращаем tablespace в обычный режим.
select ' alter tablespace '||tablespace_name||' end backup ;' from dba_tablespaces where CONTENTS <> 'TEMPORARY';
alter tablespace esvc end backup ;
alter tablespace samora end backup;
……………………………………..
……………………………………..
Выполняем команды приведённые вверху. Тем самым возвращаем tablespace в обычный режим. Проверяем состояние.
select status,count(*) from v$backup group by status;
STATUS COUNT(*)
----------------- --------------
NOT ACTIVE 29
(е). После завершения копирования. Создаём standby controlfile с помощью команды:
alter database create standby controlfile as ' /u04/oracle /stbycf.ctl ';
Затем , переместим его на Standby в каталог указанный в init.ora
Step 6:
Now up the Standby database as follows
(a ). Запустим standby базу nomount режиме
startup nomount pfile=’u01/file/initPROD.ora’
(b). Монтируем standby базу
alter database mount standby database ;
Заметка :
Теперь , наша standby база в mount режиме. Для автоматического восстановления standby, необходимо перегрузить нашу PRIMARY базу. Таким образом, все изменения, которые мы внесли в initPROD.ora на primary базе будут применены.
---------------------------------------------------------------------------------------------------------------------
C.1 # После перезагрузке primary базы. Для введения standby базы в managed recover режим, выполним команду:
alter database recover managed standby database disconnect from session ;
C.2 # Если нет возможности перегрузить primary базу, то необходимо в ручную скопировать archive логии на standby базу . И выполнить команду:
recover standby database;
далее, выбираем “AUTO” режим, чтобы применить все недостающие archive логии.
Note 1 : При создании standby базы на одном и том же сервере с primary базой
Необходимо использовать “LOCK_NAME_SPACE” параметр .
LOCK_NAME_SPACE = standby
И добавить “instance_name” в init.ora на Primary и Standby.
Note 2 : Как проверить max количество archive log применённых на standby базе.
select max(sequence#) from v$archived_log where applied=’YES’;
1.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
2.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH SKIP STANDBY LOGFILE;
3.
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
When exporting to various formats via Discoverer Plus 10g (10.1.2), the file is always sent to a location like "C:\Documents and Settings\
How can this default export location be changed?
The Sun java virtual machine plug-in used for Discoverer Plus is installed and is specific to each PC.
You can set some system-level properties per the Sun JVM "Deployment Configuration File and Properties Guide.
However, the guide does not specifically indicate you can set the user home at the system-level.
Setting the user home at the local PC level will allow changing the default export path for Sun JRE 1.4.
This option is only available for Sun JRE 1.4.
NOTE: For Sun JRE 1.5 and above, you can only specify a different location for all users (not for individual user), for more information please refer to Note 365245.1.
The user (or administrator) is required to make the following changes locally on every PC.
For Sun Java Plugin:
user.home=
user.home=D:\\DISCO_1012\\TEMP
For Oracle Jinitiator Plug-in:
1. Open Windows Control Panel, double click on "Jinitiator 1.3.1.xx" icon,
click on cache tab and note down the value set for Location under
"JAR cache Settings".
Suppose the value is set to "C:\WINNT\Profiles\jdoe\Oracle Jar Cache"
2. Click on Start >> Run
and type the command:
explorer %userprofile%\.jinit
This opens Windows Explorer with the current directory as %userprofile%\.jinit
3. Check if there is any file with name:
properties13xx (used by Jinitiator 1.3.1.xx)
4. If there is no such a file create a new file with name properties13xx
(for example properties1318, if using jinitiator 1.3.1.8) and add
the following entries:
jarcache.directory=
(make sure to put two backslashes in the place of single backslash)
user.home=
(make sure to put two backslashes in the place of single backslash)
For example:
user.home=D:\\TEMP
jarcache.directory=C:\\WINNT\\Profiles\\jdoe\\Oracle Jar Cache
(Note there are two '\' between directory name separators)
5. If there is already existing file properties13xx in the
%userprofile%\.jinit directory and jarcache.directory entry
exists in this file and it is pointing to a directory, then do not change it.
Only add the entry for user.home as shown in step 4 at the end of the file.
Before modifying properties13xx file, take a backup of those files.
6. Save the file.
7. Exit all the browser windows.
8. Invoke a new browser window to run Discoverer Plus.
Now export from Discoverer Plus should create files under the directory to
which user.home entry points to.