24 Kasım 2010 Çarşamba

initialization parametre değiştirme

öncelikle şu anki durmunu görüntülemek için

sqlplus ile bağlanıp

show parameter parametre_adı;

sonra

alter system set parametre_adı=değeri scope=spfile;

shutdown

startup

bu kadar :)

4 Şubat 2010 Perşembe

Dblink oluşturma ve veri taşıma

öncelikle plsql yada toad editörü açıp dblink oluştur diyoruz.(plsql de yapılması tavsiye edilir)

sonra dblink oluşturduğunuz target database de tnsnames ora lara(rac olduğu için lar diyorum)

source db nin bilgilerini eklemeniz lazım.

ve dblink iniz hazır :)

şimdi kopyalama işlemi için aşağıdaki gibi bir sorgu yeterli


create table ABONE_ADRES as
select * from schema_name.abone_adres@dbl_hizir;

buradaki schema_name tablo hangi schema da ise o schemanın adı
db1_hizir ise dblinkinizin adı

13 Ocak 2010 Çarşamba

Enterprise manager agent reconfigure

1- agent ı durdur

$PROMPT> cd AGENT_HOME/bin
$PROMPT> ./emctl stop agent

örn durumlar:
emctl start agent
emctl stop agent
emctl status agent

2-Locate the emd.properties file in the Management Agent home directory:

AGENT_HOME/sysman/config/emd.properties

3-Use a text editor to open the file and locate the REPOSITORY_URL property.

4-Modify the value for the REPOSITORY_URL property so it references the new Management Service.

For example:

REPOSITORY_URL=http://mgmthost2.acme.com:4889/em/upload

5-Modify the value for the emdWalletSrcUrl and emdWalletDest properties so they reference the new Management Service and the new Oracle home path, respectively:

For example, if the new Management Service is on a host called mgmthost2.acme.com and the new Oracle home is /private/oracle/em10g, modify the properties as follows:

emdWalletSrcUrl=http://mgmthost2.acme.com:4889/em/wallets/emd
emdWalletDest=/private/oracle/em10g/sysman/config/server

6-Save your changes and close the emd.properties file.

7-Delete all the files in the following directories:

AGENT_HOME/sysman/emd/upload/
AGENT_HOME/sysman/emd/state/
Note:

You can use the emctl clearstate agent command to delete the files in the state directory.
8-Restart the Management Agent.

ekstra işlemler


Securing the Management Agent
To secure the Management Agent of the new Management Service, use the following command:

emctl secure agent