Archive for February, 2015

Rsync creating \#015 directory

February 16, 2015 Leave a comment

receiving file list … done
created directory /cygdrive/c/mikestuff/scripts/bin/\#015

When you are running an rsync  from windows transferring files from linux to windows you will find that its creates  a directory named “#015” (the weird dot) inside of the  directory

Using a script using cygwin which contains

rsync -trzv michael.desouza@host:/home/michael.dsouza/bin/* /cygdrive/c/mikestuff/scripts/bin/

to prevent this happening  you need to dos2unix the script

Useful utility

tracks/synchronizes changes in both directions, i.e., files changed on server1 will be replicated to server2 and vice versa.

Categories: Oracle

Drop sysman user in 11gr2

February 6, 2015 Leave a comment

If your listener is running under a cluster alias  instead of the hostname then you need to use

ORACLE_HOME/sysman/admin/emdrep/bin/RepManager host 1521 SID -action drop

instead of emca -deconfig dbcontrol db -repos drop

oracle@paramount:/home/oracle > $ORACLE_HOME/sysman/admin/emdrep/bin/RepManager 1521 dbapbr -action drop
Enter SYS user's password :
Enter repository user name : SYSMAN
Getting temporary tablespace from database...
Found temporary tablespace: TEMP
Checking SYS Credentials ... rem error switch
rem error switch
Dropping the repository..
Checking for Repos User ... Exists.
Repos User exists..
Clearing EM Contexts ... OK.
Dropping EM users ...
Dropping Repos User ... Done.
Dropping Roles/Synonymns/Tablespaces ... Done.
Dropped Repository Successfully.

Categories: Oracle