Oracle 11G 64-bit automatic restart and shutdown commands in RHEL (Red Hat Enterprise Linux, the same below) 5.5 64-bit:
Log On As an oracle user and enter:
VI/etc/init. d/Oracle
On the Edit page, add the following content: (assume that the Oracle main directory is/u01
in (select group_numberFrom v $ asm_diskgroupWhere name = 'orcl _ data1 ');
Path----------------------------------Orcl: vol1Orcl: vol2
Start/stop a RAC cluster
Make sure that you log on with an oracle UNIX user. We will run all the commands from the Rac1 node:
# Su-Oracle
$ Hostname
Rac1
Stop Oracle
[Oracle] Some Common commands in RAC (1)
Node layer:
Olsnodes
-N: displays the number of each node.
[Oracle @ rac1 ~] # Olsnodes-n
Rac1 1
Rac2 2 2
-P: displays the name of the network interface used by each node for private interconnect.
[Oracle @ rac1 ~] # Olsnodes-p
Rac1 rac1-priv
Rac2 rac2-priv
-I: displays the VIP
It is estimated that SQL * Plus is used almost at the beginning in Oracle,
After all, this tool can run on any platform running Oracle,
You can install this tool on the client or on the server,
To install the client, install the client software provided by Oracle,
On the server side, it is automatically installed when Oracle
,ip2 ...)#禁止访问的IPTcp.excluded_nodes= (Ip1,ip2 ...)Then restart the Listenereg# Sqlnet.ora Network Configuration File:e:/oracle/product/10.2.0/db_3/network/admin/sqlnet.ora# Generated by Oracle configuration tools.# This file was actually generated by NETCA. But if customers choose to# install ' Software only ', this file wont exist and without the native# Authentication, they'll is not being able to connect
1. Oracle startup and Shutdown1. to enable or disable the Oracle System in a single-host environment, you must first switch to the Oracle user, as shown below:Su-Oracle
A. Start the Oracle SystemOracle> svrmgrlSvrmgr> connect internalSvrmgr> startupSvrmgr> quit
B. Disabl
/group_4.266.685491921
Name---------------------------+ Rac_disk/novadb/tempfile/temp.263.685491617
12 rows selected.
SQL>
All ASM disks belonging to the "rac_disk" disk group
SQL> select path from V $ asm_disk where group_number in (select group_number from V $ asm_diskgroup where name = 'rac _ disk ');
Path---------------------------/Dev/raw/raw3/Dev/raw/raw4Orcl: nova3
Start/stop a RAC cluster
Make sure that you log on with an oracle UNIX user. We
I collected a summary of Common commands used to execute scripts in oracle databases, hoping to help you.
1. Execute an SQL script file
The Code is as follows:
Copy code
Sqlplus user/pass @ servicename OrSQL> start file_namesOrSQL> @ file_name
We can save multiple SQL statements in a text file, so that when we want to execute all the SQL statements in this file, we can use any
Common maintenance commands for Oracle 10g RAC: status of all instances and services [oracle @ vzwc1 ~] $ Srvctl status database-d zwc Instance zwc1 is running on node vzwc1 Instance zwc2 is running on node vzwc2 status of a single Instance [oracle @ vzwc1 ~] $ Srvctl status instance-d zwc-I zwc1 Instance zwc1 is runni
autoextend on next 5 M maxsize 2048M; #增加数据文件方式且允许自动增长sql> ALTER DATABASE datafile '/HOME/ORACLE/TABLESPACE.DBF ' autoextend on next 5M maxsize 2048M; #允许已存在的数据文件自动扩展sql> ALTER DATABASE datafile '/HOME/ORACLE/TABLESPACE.DBF ' resize 2048M; # Change the current data file size#调整临时表空间文件sql> Alter tablespace temp add tempfile '/home/oracle/temp2.dbf ' size 2048M; #
Tags: environment variable min Resolve successful configuration environment variable startup directory ... Usejust like completing the JDK installation, you need to configure the environment variable java_home and path for the system to let the system know the Javac command inside the JDK. Similarly, there is a process required to install Oracle. When you install Oracle under normal conditions, the system
Common commands in Oracle Oracle
Log Management
1.forcing Log Switches
sql> alter system switch logfile;
2.forcing checkpoints
Sql> alter system checkpoint;
3.adding Online Redo Log groups
sql> ALTER DATABASE Add logfile [Group 4]
Sql> ('/disk3/log4a.rdo ', '/disk4/log4b.rdo ') size 1m;
4.adding Online Redo Log Members
sql> ALTER DATABASE Add logfile Member
Trimspool on
set Linesize a
set pagesize
set newpage 1
set heading off
set term Off
spool path + filename
Select col1| | ', ' | | col2| | ', ' | | col3| | ', ' | | col4| | '. ' FROM TableName;
Spool off
With some basic commands
1. Get database name and date created
Copy Code code as follows:
SELECT name, created, Log_mode, open_mode from V$database;
2, the Oracle databa
The previous article talked about the daily maintenance commands of Linux and the daily maintenance commands of oracle. I believe that Oracle databases must be maintained more or less. Should I import and export Oracle databases? (Oh, you said you used PL/SQL tools for impor
common maintenance commands for Oracle 10g Dataguard.
Basic common
1. Stop standbySelect process, status from V$managed_standby; --See if the standby is restored in the application logALTER DATABASE recover managed standby database cancel;Shutdown immediate;2. Switch to read-only mode-----switched from Shutdown mode to read-only mode-------Startup Nomount;ALTER DATABASE mount standby database;ALTER DATAB
Common SQL commands @ oracle Data Type summary @ permission, role, User Creation and use @ pseudo column and precautions 1. user system permissions with different permissions: User name: sys/system (the default user name is sys, system); Password: Oracle11g (the password is your installed password, oracle11g password must be entered Oracle11g) reset the user password. Here we take scott user as an example:
Oracle command line is believed to be familiar to everyone. in the daily work of DBAs, Oracle users are often unlocked; the following describes how to unlock an Oracle user in the Oracle command line. Several Simple unlock statements can be used to unlock the user.
The following describes how to unlock a user using
Common scenarios: When you back up the Oracle database from the server and restore the Oracle database to a local machine, you will often encounter inconsistency in the character encoding of the database.
Common scenarios: When you back up the Oracle database from the server and restore the Oracle database to a local m
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.