Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Friday, July 02, 2010

Apex 4 Installation on 11gR2

A URL da doc : http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#insertedID6

Baseada na documentação coloquei os seguintes passos:


--1º install Oracle Text if you got  :
/*Elapsed: 00:00:00.01
Application Express installation requires the Oracle Text database component.
begin
*
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at line 4
Disconnected from Oracle Database 11g Release 11.2.0.1.0 - Production
*/
@?/ctx/admin/catctx.sql ctxsys DRSYS TEMP(your temporary tablespace) NOLOCK


--all ok
-- 2ºinstall apex

@apexins SYSAUX SYSAUX TEMP /i/

--all ok
--3º change ADMIN password

@apxchpwd
--Brasil#2010

--all ok
-- 4º unlock APEX_PUBLIC_USER
ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK ;

--all ok
-- 5º change the passwaord for ALTER USER APEX_PUBLIC_USER IDENTIFIED BY

ALTER USER APEX_PUBLIC_USER IDENTIFIED BY senha

--all ok
-- 6º  grant connect privileges to any host for the APEX_040000 database user

DECLARE
  ACL_PATH  VARCHAR2(4000);
  ACL_ID    RAW(16);
BEGIN
  -- Look for the ACL currently assigned to '*' and give APEX_040000
  -- the "connect" privilege if APEX_040000 does not have the privilege yet.

  SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
   WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;

  -- Before checking the privilege, ensure that the ACL is valid
  -- (for example, does not contain stale references to dropped users).
  -- If it does, the following exception will be raised:
  --
  -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_040000'
  -- ORA-06512: at "XDB.DBMS_XDBZ", line ...
  --
  SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID
    FROM XDB.XDB$ACL A, PATH_VIEW P
   WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND
         EQUALS_PATH(P.RES, ACL_PATH) = 1;

  DBMS_XDBZ.ValidateACL(ACL_ID);
   IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_040000',
     'connect') IS NULL THEN
      DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,
     'APEX_040000', TRUE, 'connect');
  END IF;

EXCEPTION
  -- When no ACL has been assigned to '*'.
  WHEN NO_DATA_FOUND THEN
  DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
    'ACL that lets power users to connect to everywhere',
    'APEX_040000', TRUE, 'connect');
  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
END;
/

commit ;

--all ok
-- 7º Enable Indexing of Online Help in Oracle Database 11gR2 and Higher

--a)
SELECT par_value FROM ctxsys.ctx_parameters WHERE par_name = 'FILE_ACCESS_ROLE';

--if return null then

--b) create a role

SQL> CREATE ROLE APEX_URL_DATASTORE_ROLE;

Role created.

--c)grant the user APEX_040000

SQL> GRANT APEX_URL_DATASTORE_ROLE to APEX_040000;

Grant succeeded.

--d)grant permission

EXEC ctxsys.ctx_adm.set_parameter('file_access_role', 'APEX_URL_DATASTORE_ROLE');

-- e) if a) return a value grant the user  APEX_040000 with the role wich showed at step a) and continue ons tep c)

--all Ok
--8º Embedded gateway + configuração do local das imagens(the base directory location where the APEX was unzipped)

@apex_epg_config /home/oracle

--all ok
--9º unlock anonymous

ALTER USER ANONYMOUS ACCOUNT UNLOCK;

--all ok
-- 10º change the image directory.the base directory location where the APEX was unzipped

@apxldimg.sql /home/oracle


--10º drop the old apex users

--a)
SELECT username
   FROM dba_users
 WHERE (username LIKE 'FLOWS_%' OR USERNAME LIKE 'APEX_%')
   AND USERNAME NOT IN (
        SELECT 'FLOWS_FILES'
          FROM DUAL
         UNION
        SELECT 'APEX_PUBLIC_USER' FROM DUAL
         UNION
        SELECT SCHEMA s
           FROM dba_registry
         WHERE comp_id = 'APEX');

--b) drop all user that appear on the select above

drop user "usuario" cascade ;

Depois :

http://hostname ou IP:8080/apex/apex_admin
http://hostname ou IP:8080/apex

--Any problem wth ADMIN password,reset with @apxchpwd


Troque a senha e enjoy it!

Thursday, January 07, 2010

Instalação do Oracle EM Grid Control 10.2.0.5 em Linux x86 – Part 2

Olá,
Vamos a continuação do post anterior .
Aplicação do Patch 10.2.0.5 no Grid Control Server 10.2.0.1.1
O software(mídia) para instalação do patch 10.2.0.5 pode ser encontrado em  :
http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html
O procedimento de aplicações deste patch está em :
http://www.oracle.com/technology/software/products/oem/htdocs/gridR5_10205_readme.html
Aplicando o patch
Obs .Certifique-se de que os serviços do OMS,Agent e banco de dados não estejam ativos.



[oracle@suecia patch10205]$ ps -ef|grep ora
root      3190  3165  0 08:13 ?        00:00:04 hald-addon-storage: polling /dev/hdc
oracle   14473     1  0 09:54 ?        00:00:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=16
root     14633  1816  0 09:55 ?        00:00:00 sshd: oracle [priv]
oracle   14635 14633  0 09:55 ?        00:00:00 sshd: oracle@notty
oracle   14636 14635  0 09:55 ?        00:00:00 /usr/bin/xterm -ls -display localhost:10.0
oracle   14655 14636  0 09:55 pts/1    00:00:00 -bash
root     15846  1816  0 10:03 ?        00:00:00 sshd: oracle [priv]
oracle   15848 15846  0 10:03 ?        00:00:00 sshd: oracle@pts/2
oracle   15849 15848  0 10:03 pts/2    00:00:00 -bash
oracle   15910 15849  0 10:14 pts/2    00:00:00 ps -ef
oracle   15911 15849  0 10:14 pts/2    00:00:00 grep ora


Descompactação dos arquivos


Execute o unzip nos dois arquivos :
[oracle@suecia ~]$ cd /u01/sw/grid_control/
[oracle@suecia grid_control]$ ls -l
total 4016004
drwxr-xr-x 3 oracle oinstall       4096 Jan  6 12:24 10.2_base
-rw-r--r-- 1 oracle oinstall 1138311452 Feb 23  2009 V15627-01_1of2.zip
-rw-r--r-- 1 oracle oinstall 1137845265 Feb 23  2009 V15627-01_2of2.zip
-rw-r--r-- 1 oracle oinstall 1832188952 May  9  2009 V16617-01.zip
[oracle@suecia grid_control]$ mkdir patch10205
[oracle@suecia grid_control]$ cp V15627-01_1of2.zip V15627-01_2of2.zip patch10205
[oracle@suecia grid_control]$ cd patch10205/
[oracle@suecia patch10205]$ ls -l
total 2225000
-rw-r--r-- 1 oracle oinstall 1138311452 Jan  7 10:05 V15627-01_1of2.zip
-rw-r--r-- 1 oracle oinstall 1137845265 Jan  7 10:06 V15627-01_2of2.zip
[oracle@suecia patch10205]$ mkdir part1 part2
[oracle@suecia patch10205]$ unzip V15627-01_1of2.zip -d part1
Archive:  V15627-01_1of2.zip
extracting: part1/3731596.zip
extracting: part1/3822442.zip
  inflating: part1/README.txt
   creating: part1/doc/
  inflating: part1/doc/BugList_EMGC_10.2.0.5.pdf
  inflating: part1/doc/ReleaseNotes_EMGC_10.2.0.5.html
  inflating: part1/doc/ReleaseNotes_EMGC_10.2.0.5.pdf
  inflating: part1/doc/BugList_EMGC_10.2.0.5.html
[oracle@suecia patch10205]$
[oracle@suecia patch10205]$ unzip V15627-01_2of2.zip -d part2
Archive:  V15627-01_2of2.zip
extracting: part2/p3731593_10205_LINUX.zip
[oracle@suecia patch10205]$
Baixamos do site da Oracle 2 arquivos identificados como xxx.1of2.zip e xxx2of2.zip.


Os arquivos da mídia 1 são usados para outro propósito como descrito no README :
- 3731596.zip is for patching Management Agent by staging the patch set. To understand how you can apply the Management Agent 10.2.0.5 patch set, refer to method 2 described in section 4.3.3 "Upgrading Management Agent - Multiple Hosts at a Time" of the Release Notes. The Release Notes can be found in the "doc" directory.
- 3822442.zip is for patching Management Agent by distributing the full patch set. To understand how to apply the Management Agent 10.2.0.5 patch set, refer to method 1 described in section 4.3.3 "Upgrading Management Agent - Multiple Hosts at a Time" of the Release Notes. The Release Notes can be found in the "doc" directory.
Fiz a descompactação do arquivo V15627-01_2of2.zip que gerará o arquivo p3731593_10205_LINUX.zip.Este é o arquivo que iremos utilizar para o upgrade !


É necessário fazer mais uma descompactação do arquivo gerado da mídia numero 2.
[oracle@suecia part2]$ unzip p3731593_10205_LINUX.zip
O resultado deve ser este aqui :
[oracle@suecia part2]$ ls
3731593  p3731593_10205_LINUX.zip
[oracle@suecia part2]$
Dentro do README do patch está uma informação muito IMPORTANTE :
Note: Make sure that you first upgrade the Oracle Management Service (OMS), and then the Management Agent before upgrading the
database that contains the Management repository (sysman schema)
Aplicando o patch no OMS e SYSMAN schema no repositório(database)


Setando a ORACLE_HOME do OMS



[oracle@suecia part2]$ export ORACLE_HOME=/u01/app/oms10g
[oracle@suecia ~]$ cd /u01/sw/grid_control/patch10205/part2/
[oracle@suecia part2]$ ls
3731593  p3731593_10205_LINUX.zip
[oracle@suecia part2]$ cd 3731593/
[oracle@suecia 3731593]$ ls
Disk1  preinstall.pl  readme.html
[oracle@suecia 3731593]$ cd Disk1/
[oracle@suecia Disk1]$ ls
doc  install  oui  response  runInstaller  stage
[oracle@suecia Disk1]$
Execute o runInstaller :







Obs. O banco dados do repositório(emrep) e o listener devem estar ativos e disponíveis.

Obs. A senha usada foi definida para o usuário sysman no post anterior .









Depois de alguns instantes :


Depois de mais algum tempo :



No prompt como root  executar o root.sh:



[root@suecia /]# /u01/app/oms10g/root.sh
[root@suecia /]#
No OUI depois do Configuration Assistants :

Aplicando o patch no Agent (Grid Server)
Setando o ORACLE_HOME do Agent0g



[oracle@suecia Disk1]$ export ORACLE_HOME=/u01/app/agent10g/
[oracle@suecia Disk1]$ echo $ORACLE_HOME
/u01/app/agent10g/
Executando o runInstaller :






Executar o root.sh com o usuário root :
[root@suecia /]# /u01/app/agent10g/root.sh
Finished product-specific root actions.
[root@suecia /]#
[root@suecia /]#
Novamente no OUI :




Patch instalado,vamos verificar os serviços e o banco de dados rodando




Banco de dados :
[oracle@suecia bin]$ ps -ef|grep pmon
oracle    3437 15849  0 12:24 pts/2    00:00:00 grep pmon
oracle   16555     1  0 10:48 ?        00:00:00 ora_pmon_emrep
Listener :
[oracle@suecia bin]$ ps -ef|grep tns
oracle    3443 15849  0 12:24 pts/2    00:00:00 grep tns
oracle   16478     1  0 10:47 ?        00:00:01 /u01/app/db10g/bin/tnslsnr LISTENER -inherit
OMS :
[oracle@suecia bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.suecia
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
HTTP_Server        | HTTP_Server        |   23412 | Alive
LogLoader          | logloaderd         |     N/A | Down
dcm-daemon         | dcm-daemon         |   24303 | Alive
OC4J               | home               |   23413 | Alive
OC4J               | OC4J_EMPROV        |   23414 | Alive
OC4J               | OC4J_EM            |   23415 | Alive
OC4J               | OCMRepeater        |   30423 | Alive
WebCache           | WebCache           |   23461 | Alive
WebCache           | WebCacheAdmin      |   23417 | Alive
DSA                | DSA                |     N/A | Down
Agent :
[oracle@suecia bin]$ agenthome
[oracle@suecia agent10g]$ cd bin/
[oracle@suecia bin]$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /u01/app/agent10g
Agent binaries    : /u01/app/agent10g
Agent Process ID  : 1797
Parent Process ID : 1779
Agent URL         : https://suecia:3872/emd/main/
Repository URL    : https://suecia:1159/em/upload
Started at        : 2010-01-07 12:15:14
Started by user   : oracle
Last Reload       : 2010-01-07 12:16:10
Last successful upload                       : 2010-01-07 12:23:58
Total Megabytes of XML files uploaded so far :    11.37
Number of XML files pending upload           :      253
Size of XML files pending upload(MB)         :     5.41
Available disk space on upload filesystem    :    14.98%
Last successful heartbeat to OMS             : 2010-01-07 12:24:52
---------------------------------------------------------------
Agent is Running and Ready
[oracle@suecia bin]$
Vamos acessar a pagina do EM Grid Control  :













Wednesday, January 06, 2010

Instalação do Oracle EM Grid Control 10.2.0.5 em Linux x86 - Part 1

Olá,
A partir deste post vou compartilhar com os leitores do blog a instalação do Oracle EM Grid Control que nada mais é que o EM Database Control extendido a gerenciar,coletar e processar estatíscas através  do Agent a mais de uma instance ou database.Vale lembrar que também é possível monitorar outros tipos de “alvos” além do banco de dados como Servidores Web e outros sistemas operacionais como Linux.A função do Agent(residente no target) é coletar as informações e enviar ao repositório do Grid Control por meio de uma série de serviços  do OMS ligado ao repositório .Mas não vamos entrar em detalhe hoje!
Abaixo uma imagem para representar melhor a arquitetura do Grid Control.
image

Instalação do Grid Control 10.2.0.5 on OEL 5
A primeira instalação a ser feita é a da mídia base “full”  que contém todos serviços a serem instalados,portanto a instalação a ser feita é da versão 10.2.0.1.1 e posteriormente a aplicação do patch para a 10.2.0.5 .
Abaixo o local de download e informções sobre as mídias de instalação .
http://www.oracle.com/technology/software/products/oem/index.html
Grid Control(full)
http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html
Patch 10.2.0.5 do Grid
http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html
Agent 10.2.0.5( para isntalar nos targets(alvos)
http://www.oracle.com/technology/software/products/oem/htdocs/agentsoft.html
Observações :
- A Oracle disponibiliza praticamento todos os seus softwares gratuitamente para fins de estudo pessoais
- Esta instalação tenta simular um ambiente real,mas limitado a capaciade de hardware e software utilizados.
- Esta instalação começa depois de já ter configurado o sistema operacional  Linux,parâmetros de kernel ,pacotes ,usuários e grupos e etc.
Dicas
Certifique-se de que os  requisitos do sistema estão ok com o sistema operacional,hardware e arquitetura tais como :
-  pacotes necessários  estão instalados
- Nome do host configurado bem como /etc/hosts
- Memória RAM ,Swap e área temporária suficientes
- Software Oracle compatível com o S.O e Hardware
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Criando o diretório para as midias do grid control:
[root@suecia u01]# ls -l
total 4
drwxrwxr-x 2 oracle oinstall 4096 Jan  6 11:34 app
[root@suecia u01]# mkdir sw
[root@suecia u01]# chmod -R 777 /u01/sw
[root@suecia u01]# 
[root@suecia u01]# 
Enviei as mídias via WinSCP para o diretório acima.
Descompactando as midias :
Para descompactar use o comando
unzip nomedoarquivo
ex.
unzip V16617-01.zip
[root@suecia /]# cd /u01/sw/
[root@suecia sw]# ls -ltrh
total 4.0K
drwxr-xr-x 3 oracle oinstall 4.0K Jan  6 12:20 grid_control
[root@suecia sw]# cd grid_control
[root@suecia grid_control]# ls -l
total 4016004
drwxrwxr-x 3 oracle oinstall       4096 Jan  6 12:20 Disk1
-rw-r--r-- 1 oracle oinstall 1138311452 Feb 23  2009 V15627-01_1of2.zip
-rw-r--r-- 1 oracle oinstall 1137845265 Feb 23  2009 V15627-01_2of2.zip
-rw-r--r-- 1 oracle oinstall 1832188952 May  9  2009 V16617-01.zip
[root@suecia grid_control]# 
Depois da extração da midia do grid 10.2.x que possui a instalação full para Linux.
[oracle@suecia grid_control]$ ls -ltrh
total 3.9G
-rw-r--r--  1 oracle oinstall 1.1G Feb 23  2009 V15627-01_1of2.zip
-rw-r--r--  1 oracle oinstall 1.1G Feb 23  2009 V15627-01_2of2.zip
drwxrwxr-x 10 oracle oinstall 4.0K May  8  2009 Disk1
-rw-r--r--  1 oracle oinstall 1.8G May  9  2009 V16617-01.zip
[oracle@suecia grid_control]$ mkdir 10.2_base
[oracle@suecia grid_control]$ ls
10.1  Disk1  V15627-01_1of2.zip  V15627-01_2of2.zip  V16617-01.zip
[oracle@suecia grid_control]$ mv Disk1/ 10.2_base/
[oracle@suecia grid_control]$ ls -l
total 4016004
drwxr-xr-x 3 oracle oinstall       4096 Jan  6 12:24 10.2_base
-rw-r--r-- 1 oracle oinstall 1138311452 Feb 23  2009 V15627-01_1of2.zip
-rw-r--r-- 1 oracle oinstall 1137845265 Feb 23  2009 V15627-01_2of2.zip
-rw-r--r-- 1 oracle oinstall 1832188952 May  9  2009 V16617-01.zip
[oracle@suecia grid_control]$ 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Instalação via OUI :
[oracle@suecia Disk1]$ ls -l
total 44
drwxrwxr-x  4 oracle oinstall 4096 May  8  2009 dcommon
drwxrwxr-x  6 oracle oinstall 4096 May  8  2009 doc
-rwxrwxr-x  1 oracle oinstall 5488 May  8  2009 index.htm
drwxrwxr-x  5 oracle oinstall 4096 Apr 21  2009 install
drwxrwxr-x  4 oracle oinstall 4096 Apr 21  2009 libskgxn
drwxrwxr-x  5 oracle oinstall 4096 Apr 21  2009 oms
drwxrwxr-x  5 oracle oinstall 4096 Apr 21  2009 rdbms
drwxrwxr-x  2 oracle oinstall 4096 Apr 21  2009 response
-rwxrwxr-x  1 oracle oinstall 1457 Apr 21  2009 runInstaller
drwxrwxr-x 10 oracle oinstall 4096 Apr 21  2009 stage
[oracle@suecia Disk1]$ xclock
Warning: Missing charsets in String to FontSet conversion
[oracle@suecia Disk1]$ ./runInstaller 
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, redhat-4, redhat-5, redhat-5.1, SuSE-9, SuSE-10, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-01-06_12-29-34PM. Please wait ...[oracle@suecia Disk1]$ 
clip_image001
clip_image002
clip_image003
clip_image004
clip_image005
clip_image006
clip_image007
clip_image008
clip_image009
clip_image010
Executar no shell como root please!
[root@suecia /]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory to 770.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete
[root@suecia /]# /u01/app/db10g/allroot.sh
Starting to execute allroot.sh ......... 
Starting to execute /u01/app/db10g/root.sh ......
Running Oracle10 root.sh script...
\nThe following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/db10g
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...
\nCreating /etc/oratab file...
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
/etc/oracle does not exist. Creating it now.
Finished execution of  /u01/app/db10g/root.sh ......
Starting to execute /u01/app/oms10g/root.sh ......
Running Oracle10 root.sh script...
\nThe following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oms10g
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying coraenv to /usr/local/bin ...
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished execution of  /u01/app/oms10g/root.sh ......
Starting to execute /u01/app/agent10g/root.sh ......
Running Oracle10 root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/agent10g
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
Finished execution of  /u01/app/agent10g/root.sh ......
[root@suecia /]# 
clip_image011
Acima pegamos um erro na instalação e está aqui compartilhado para que se alguem passar pelo mesmo possa resolvê-lo da melhor forma possível.
Dica do meu amigo DBA  Bruno Murassaki
Corrigindo os erros :
[root@suecia /]#  ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
[root@suecia /]# chmod 755 /usr/lib/libgdbm.so.2.0.0
[root@suecia /]# chmod 755 /usr/lib/libdb.so.2
[root@suecia /]# 
Voltando ao OUI  e clicando em “retry”
clip_image012
clip_image013
Oh não! Outro erro!
Desta vez vamos o Metalink !
Corrigindo os erros de acordo com o Metalink :
[oracle@suecia ~]$ cd /u01/app/oms10g/
[oracle@suecia oms10g]$ ls
agentdeploy     cfgtoollogs  deconfig     install.platform  jdk   mesg     oraInst.loc  precomp   soap         sysman    webservices
allroot.sh      chgip        diagnostics  inventory         jlib  network  oui          rdbms     sqlj         uddi      wireless
Apache          clone        dsa          j2ee              jre   nls      owm          relnotes  sqlplus      uix       xdk
assistants      config       has          javacache         jsp   OPatch   perl         rlmgr     srvm         upgrade
backup_restore  datadirect   iaspt        javavm            ldap  opmn     plsql        root.sh   sso          wcs
bin             dcm          install      jdbc              lib   oracore  portal       slax      syndication  webcache
[oracle@suecia bin]$ ./dcmctl updateConfig -ct ohs
[oracle@suecia bin]$ 
Novamente clicando em “retry”e  retornando ao OUI
clip_image014
clip_image015
clip_image016
Como visto terminamos a instalação do EM Grid Control 10.2.0.1.1.
Mas como subir os serviços?
Como subir os serviços necessários do Grid
Porcure por sua ORACLE_BASE até achar as 3 HOMES abaixo :
# Start everything
db10g/bin/dbstart
oms10g/opmn/bin/opmnctl startall
agent10g/bin/emctl start agent
# Stop everything
agent10g/bin/emctl stop agent
oms10g/opmn/bin/opmnctl stopall
db10g/bin/dbshut
Caso banco não efetue shutdown com dbshut verifique novamente ou efetue shutdown como SYSDBA tradicionalmente via SQLPLUS!
Após subir todos os serviços pude acessar o console do Grid Control.
Pode ver que está tudo ok e o próprio host está sendo monitorado e note também que  ao final da página do navegador está a temperatura e  a previsão do tempo em São Paulo !!!!
clip_image017
Normalmente edito o .bash_profile do usuário Oracle depois.
Alguma das variáveis de ambiente para o .bash_profile  do usuário oracle:
[oracle@suecia ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
##############################################
##Modificado por Julio C. Correa em 07/01/2010
##############################################
##Variaveis de ambiente  para o grid server
export ORACLE_BASE=/u01/app
export ORACLE_HOME=/u01/app/db10g
export ORACLE_SID=emrep
export PATH=$PATH:$ORACLE_HOME/bin
##Comandos para acessar mais rapido as outras HOMES
alias omshome='cd /u01/app/oms10g'
alias agenthome= 'cd /u01/app/agent10g'
[oracle@suecia ~]$
No próximo post vamos fazer a aplicação do patch 10.2.0.5,afinal ainda estamos na 10.2..0.1.1 !
Abs,
Júlio César Corrêa

Wednesday, December 09, 2009

Instalação do software e criação de um banco de dados em Oracle 11g R2 com ASM

Detalhes da instalação:
Versão do Oracle
11gR2 com Grid Infrastructure já instalado
Sistema Operacional
Oracle Enterprise Linux 5
Plataforma
32 bits
Downloads on
http://www.oracle.com/technology/software/products/database/index.html
Obs.Instalação da versão Enterprise Edition
- Abaixo o diretório do software Oracle
ScreenShot047
1)  Configure Security Updates
ScreenShot048
Obs.Caso a conexão falhe aparecerá a tela de configuração do Proxy.É só entrar com a informação correta.
2)  Installation Option
ScreenShot049
3) System Class
ScreenShot050
4) Node Installation
ScreenShot051
5) Install Type
ScreenShot052
6) Product Languages
ScreenShot053
7) Database Edition
ScreenShot054
8) Instalation Location
Obs.Você pode alterar estes locais da forma que achar melhor.
ScreenShot055
9) Configuration Type
ScreenShot056
10)Database Identifiers
ScreenShot057
11)Configuration Options
- Detalhe das 4 abas(tabs) de configuração.
ScreenShot058
12) Memory
- Uso do Automatic Memory Management que agora inclui todas as estruturas de memória SGA + PGA através do  parâmetro memory_target =<valor>.
No caso deixei 384MB para o memory_target.
ScreenShot059
13)Character Set
- Padrão
ScreenShot060
14) Security
- Deixei a opção padrão para o 11gR2
ScreenShot061
15) Sample Schemas
- Marquei a instalação dos schemas de exemplo
ScreenShot062
16) Management Options
- Utilização do DB Control
Obs.Não especifiquei detalhes do e-mail
ScreenShot063
17) Database Storage Options
- No post anterior configuramos o Grid Infrastructure que já incluí as configurações necesárias para usar o novo ASMFS.
Processos do ASMFS no servidor :
ScreenShot064
Portanto vamos apenas fornecer na tela abaixo a senha do usuário ASMSNMP.
ScreenShot065
18) Recovery Options
Já vamos deixar configurado o agendamento do backup.Você pode deixar esta opção para depois e criar o seu próprio script para o RMAN.
Fast Recovery Area
No caso poderiamos optar por usar o file system ou o ASM.Optei por usar o ASM e vamos usar um utilitário chamado ASMCA para criar mais um disk group adicional.
- Especificação do usuário do sistema operacional que iniará os Jobs  de backup :
ScreenShot066
Na próxima tela do OUI podemos ver que não tem o disk group adicional para a área de Fast Recovery,nesta caso vamos criá-la manualmente :
ScreenShot068
- ASM Configuration Assistant
ScreenShot069
- Criando o novo disk group
Como já havia configurado o ASMLib no post anterior,já parece automaticamento os meus discos disponíveis para criar a FRA.
ScreenShot071
ScreenShot072
ScreenShot073
- Disk Group criado Ok.
Exit.
ScreenShot074
Fazendo o refresh na tela do OUI onde está sendo feita a instalação do banco de dados,já podemos ver o novo grupo de discos:
ScreenShot075
Prosseguindo na instalação :
19) Schema Passwords
Você pode escolher em usar uma senha para todos os usuários ou definir uma senha para cada um.
No caso escolhi uma senha para todos,para facilitar.
ScreenShot076
Obs. A mensagem que aparece na tela é porque defini uma senha bem simples que foge as padrões da Oracle.
ScreenShot077
20) Operating System Groups
ScreenShot078
21) Perform Prequisite Checks
ScreenShot079
Obs.A instalação reclamou do tamanho do Swap ,mas simplemente ignorei para prosseguir com a instalação,afinal é somente uma instalação de teste  e não um ambiente de produção real.Se for em produção,favor corrigir o tamanho do Swap !!
22) Summary
ScreenShot080
23) Algum tempo depois…
ScreenShot081
24) e mais algum tempo depois:
- Database creation complete:
ScreenShot082
25) Execução do script root.sh ,é claro como root:
ScreenShot083
No Terminal :
ScreenShot084
26) Finish
ScreenShot085
Este foi um post de exemplo de instalação do Oracle 11gR2 em Linux iniciando após ter configurado o Grid Infrastructure e configurado o ASMFS.
Abaixo a visão de alguns dos processos Oracle rodando no servidor:
ScreenShot086
Chega por hoje.
Estou pensado em falar sobre PL/SQL no próximo post.
Mas vou preparar outros posts sobre Oracle 11gR2,já estou pensando em elaborar um sobre Intalação de DG Físico.
Até,