Parm Patram

Oracle, Linux and UNIX tips, tricks and stuff
  • Home
  • Site Map
  • Cloning

    Documentation 09-19-2008 Comments Off

    http://www.dba-oracle.com/oracle_tips_db_copy.htm

    Actual commands:

    1. login to source db and backup the controlfile:
    alter database backup controlfile to trace as ‘<filename>’ reuse;

    2. shut down source database and target database

    3. Copy all data files into the new directories on the new server. You may change the file names if you want, but you must

    edit the controlfile to reflect the new data files names on the new server. DO NOT copy over the control files.

    4. edit the trace control file and change all references to the old database name to the new database name. BEWARE that there

    are 2 cases. Just delete all of the lines for the second case.

    5. Look out for comments in sql blocks and remove them!! they cause the script to blow up.

    6. Move the control files for the target database to backup.

    7. Comment out the ‘RECOVER DATABASE’ — it is not necessary as the source was shutdown cleanly.

    8. change the line:
    CREATE CONTROLFILE REUSE DATABASE “OLDSQL” NORESETLOGS  ARCHIVELOG

    to

    CREATE CONTROLFILE SET DATABASE “NEWLSQ” RESETLOGS ARCHIVELOG

    9. The OPEN statement needs to be with the resetlogs clause.

    10. login to the idle target database and run the updated trace script!

  • Data Pump

    DataPump 09-19-2008 Comments Off

    http://marcelomachado.com.br/Manual/Oracle10.2.0/server.102/b14215/dp_overview.htm

  • PL/SQL whitepaper

    Documentation, SQL & PL/SQL 09-15-2008 Comments Off

    http://www.oracle.com/technology/tech/pl_sql/htdocs/New_In_10gR1.htm

  • HELP: Getting to the help menu

    Command Reference 09-06-2008 Comments Off

    SQL> help index

    Enter Help [topic] for help.

    @             COPY         PAUSE                    SHUTDOWN
    @@            DEFINE       PRINT                    SPOOL
    /             DEL          PROMPT                   SQLPLUS
    ACCEPT        DESCRIBE     QUIT                     START
    APPEND        DISCONNECT   RECOVER                  STARTUP
    ARCHIVE LOG   EDIT         REMARK                   STORE
    ATTRIBUTE     EXECUTE      REPFOOTER                TIMING
    BREAK         EXIT         REPHEADER                TTITLE
    BTITLE        GET          RESERVED WORDS (SQL)     UNDEFINE
    CHANGE        HELP         RESERVED WORDS (PL/SQL)  VARIABLE
    CLEAR         HOST         RUN                      WHENEVER OSERROR
    COLUMN        INPUT        SAVE                     WHENEVER SQLERROR
    COMPUTE       LIST         SET                      XQUERY
    CONNECT       PASSWORD     SHOW

    SQL>

  • STARTUP

    Command Reference 09-06-2008 Comments Off

    STARTUP
    ——-

    Starts an Oracle instance with several options, including mounting,
    and opening a database.

    STARTUP options | upgrade_options

    where options has the following syntax:
    [FORCE] [RESTRICT] [PFILE=filename] [QUIET] [ MOUNT [dbname] |
    [ OPEN [open_options] [dbname] ] |
    NOMOUNT ]

    where open_options has the following syntax:
    READ {ONLY | WRITE [RECOVER]} | RECOVER

    and where upgrade_options has the following syntax:
    [PFILE=filename] {UPGRADE | DOWNGRADE} [QUIET]

  • Installing 10g on RHEL4

    Documentation, Installation 09-06-2008 Comments Off

    http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html

  • ASM Installation and configuration

    ASM (Automatic Storage Magement) 09-02-2008 Comments Off

    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10739/storeman.htm

  • Oracle SQL Developer

    SQL Developer 09-01-2008 Comments Off

    homepage:http://www.oracle.com/technology/products/database/sql_developer/index.html

  • Administer Linux host using EM

    Documentation, Enterprise Manager, Installation 08-29-2008 Comments Off

    Oracle can use yast to enable EM to manage the system. The yast packages are available from http://oss.oracle.com/projects/yast/

  • sqlplus man page

    Documentation, SQLPLUS 08-29-2008 Comments Off

    http://www.ss64.com/orasyntax/plus_set.html

« Previous Entries Next Entries »

Category:

  • Administration
    • ASM
    • BLOCK SIZE
    • Database Recovery
    • DBVERIFY
    • GRANTS
    • OEM
    • REDO LOGS
  • APPS
    • AutoConfig
    • Change EBS IP Address
    • Cloning
    • DB Environment Vars
    • Discoverer
    • Environment Vars
    • Patching
    • Problems
    • Resources Online
    • Tricks & Tips
    • Upgrading
    • Workflow
  • Articles
  • Backup & Recovery
  • Certification
  • Configuration
  • DATABASE STRUCTURE
    • Data Dictionary
    • Logical Database Structure
    • Physical Database Structure
    • SCHEMA
  • DATAGUARD
  • Documentation
    • ASM (Automatic Storage Magement)
    • Command Reference
    • DataPump
    • Documentation Library
    • SQL Developer
  • EBS
  • Enterprise Manager
  • FLASHBACK
  • HACKING
  • HEADS UP
  • Installation
    • RAC
  • JDeveloper
  • Linux
    • iptables
    • Networking
  • Monitoring
    • Big Brother
  • MQ
  • NFS
  • NXclient/server
  • Online Resources
  • PERL
  • python
  • RMAN
    • RMAN Catalog Setup
  • Routing & Switching
  • SAN – NAS
    • Netapp
  • Scripts
  • Serial-Parallel-Port-Testers
  • SNMP
  • Software
  • Solaris
  • Spiritual
  • SQL & PL/SQL
  • SQLPLUS
  • Startup/Shutdown
  • Streams
  • Tuning
    • INDEXES
    • SQL Tuning
      • TKPROF and sql_trace
  • Version Control
  • Vertias
    • VCS
    • VxFS
  • VMWare
  • VNC
  • Windows XP
  • ZFS
© Blogname. All Rights Reserved. Entries RSS Comments RSS Login Open Source