Summary of Common commands for executing scripts in Oracle databases and common commands in oracle
1. Execute an SQL script file
Copy codeThe Code is as follows:Sqlplus user/pass @ servicename
Or
Copy codeThe Code is as follows:SQL> start file_names
Or
Copy codeThe Code is as follows:SQL> @ file_name
We can save multi
Summary of Common commands used to execute scripts in oracle databases and common commands used in oracle
1. Execute an SQL script file
The Code is as follows: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
Notes on common Oracle commands and common oracle commands
Login without a password: sys as sysdba
View all current databases: select */name from v $ database;
View the current database connection user: show user
View All Tables of the current data: select table_name from all_tables;
View Structure: for ex
control, cross-operating systems, data interoperability across hardware platforms, support for multi-user, transaction handling of event volumes, and portability.-Oracle 11g Installation tutorials are not detailed, see https://jingyan.baidu.com/article/363872eccfb9266e4aa16f5d.html Web page-Oracle 11g Uninstall: First find the directory App\administrator\product\11.2.0\dbhome_1\deinstall, Click Deinstall.b
Oracle Delete user commands and partial commandsDrop user user_name cascade;Drop user user_name cascade;CREATE TABLE SpaceCREATE tablespace DATA01DataFile '/oracle/oradata/db/data01.dbf ' SIZE 500MUNIFORM SIZE 128k; #指定区尺寸为128k, if not specified, the zone size defaults to 64kDelete Table spaceDROP tablespace data01 including CONTENTS and datafiles;I. Create a tab
About the Oracle rman command, I found the rman command set on a certain network a few days ago. The rman command set in the Oracle rman command has always been what I want to know and finally got a good introduction, so we will share it with you today.
I. Summary of list Common commands
THE list command lists the backup information in the control file and RMAN r
Common Oracle commands for creating users, tablespaces, and role commandsThe following articles mainly introduce how to view the table structure in common Oracle commands. If you are interested in the actual operating solution of how to view the table structure in common Oracle
connected users.
SHUTDOWN TRANSACTIONAL
This option can only be used after Oracle 8i. This command is often used to plan to shut down the database. It completes the execution of active transactions that are currently connected to the system. After running this command, any new connections and transactions are not allowed. After any active transaction is completed, the database will be shut down in the same way as shutdown immediate.
SHUTDOWN ABORT
Th
Tags: character dev large database information Management DBA needs to run develop fromI. Classification of databases I. Classification of databases1. Small database: Access, Foxbase2. Medium database: Informix, SQL Server, MySQL3. Large database: Sybase, DB2, Oracle Second, how to reasonably use the database in the project, can be based on the following three aspects to start1, the size of the projectA, how much load, that is, the number of usersB,
Oracle environment variable commands and oracle environment variables
Oracle environment variable commands
Enter the command: ll-all
Run vi. bash_profile.
#. Bash_profile
# Get thealiases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
# Userspecific environment and
Oracle learning notes 4 SQL commands (2): SQL operation language category, oracle learning notes
SQL is classified into the following language categories1. Data Definition Language (DDL)Create, Alter, Drop
2. Data manipulation language (DML)Insert, Select, Delete, Update
3. Transaction Control Language (TCL)Commit, Savepoint, and Rollback
4. Data Control Language
Oracle import and export, oracle Import and Export commands
Oracle 10g has introduced the Data Pump (Click Data Dump) technology. What are the advantages of this technology and the previous exp/imp? in simple words, It is very fast to restore and back up;
Before explaining how to use the data pump, let's first understa
Oracle learning notes 3 SQL commands, oracle learning notes SQLSQL introduction SQL supports the following types of commands: 1. data Definition Language (DDL) 2. data manipulation language (DML) 3. transaction Control Language (TCL) 4. the Data Control Language (DCL) is a detailed note of the four SQL languages:
When
Table Space Basic Commands--Create TABLE space initialization size 10M auto grow 5M max 50MCreate tablespace Duan datafile ' F:\oracle\product\10.2.0\oradata\orcl\duan.dbf ' size 10MAutoextend on next 5M maxsize 50M;--Querying table space for address and space namesSelect File_name,tablespace_name from Dba_data_files order by file_name;--Create a multiple tablespace containing two data filesCreate tablespac
The Oracle database has a connection redo log, which records changes to the database, such as insertion, deletion, and data update. All these operations are recorded in the online redo log.
The Oracle database has a connection redo log, which records changes to the database, such as insertion, deletion, and data update. All these operations are recorded in the online redo log.
-- Connection recovery Manage
name, restart the machine, and then delete it.
6. Introduction of Oracle Management tools:
1.Oracle of the tool software, mainly for the execution of SQL statements and PL/n blocks;
How to use: Sql*plus in the Start menu, or SQLPLUSW in the run bar, or Sql*plus Worksheet in the Start menu;
2.sqlplus DOS operation Oracle Tool, its func
A complete set of common Oracle commands
A complete set of common Oracle commands
The ORACLE tutorial is a complete set of common Oracle commands.
Chapter 1: Log Management
1. forcing
-- Connection recovery ManagerC: \ Documents ents and Settings \ mengzhaoliang> rman target/-- Archive log listRMAN> list archivelog all;-- Delete archive logs that do not exist in the physical fileRMAN> delete expired archivelog all;-- Delete archived logs 7 days agoRMAN> delete archivelog all completed before 'sysdate-7 ';Oracle archiving Mode I. Check whether the oracle database is in archive mode:1. sel
Routine basic maintenance commands for Oracle RAC
Status of all instances and services
$ Srvctl status database-d orclInstance orcl1 is running on node linux1Instance orcl2 is running on node linux2
Status of a single instance
$ Srvctl status instance-d orcl-I orcl2Instance orcl2 is running on node linux2
The status of the global Naming Service in the database
$ Srvctl status service-d orcl-s orcltestServi
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.