■ SQL statements and descriptions for creating data files Create tablespace to create a tablespace and its data file create temporary tablespace create a temporary tablespace and a temporary data file (temporary data file is a special type of
SQL> select name from V $ controlfile//View the storage path of the Control File
Log on firstSQL * Plus, I useSystem/system @ TestLogin, after entering:
SQL>
Conn
/As sysdba
Connected
SQL> oradebug setmyid
SQL>
1 Overview
In Oracle, there is a special level of permission-sysdba permission,Sysdba has the highest permissions on the Oracle system, and has advanced permissions such as opening, closing, and restoring a database,The sys users frequently
Some tables are lost when the full database is exported to the new database in the business database the day before yesterday.
After reading the log, the analysis shows that some empty tables are not exported. Google knows that the new feature in 1
Map a table on the remote server to a local materialized view using the following statements:
-- -- Create a test environment dblink: Create Database Link lnk connect To User1 identified By Pwd1 using ' (Description = (address_list =
In Windows, if the registry file is damaged, the operating system stability will be affected. Otherwise, the operating system cannot be started properly. For Oracle databases, control files play an important role as the registry. If the control file
Instance 1
Create or replace trigger update_portauser_pass after update on cas_porta_user for each rowdeclare -- local variables herebegin update security_credential C set C. column_value =: New. column_value where c. principal_id in (select P.
Export/import and Character Set
When importing and exporting data, we should pay attention to the character set issue. In the exp/IMP process, pay attention to the parameters of the four character sets:The client character set at the export
Authorize a role with the following permissions:
Grant delete any table to "ucitrole"; grant the delete any table permission to the ucitrole role.
Permission:
Alter any indexAlter any tableAlter any triggerCreate any indexCreate any jobCreate
RedHat 5 configure xmanager (xdm ):
The difference between rhel5 and RHEL4 is that there is no/etc/X11/mcm/directory in rhel5, And the configuration file of rhel5 is put here/usr/share/TPD/ults. comf, which may be a problem for everyone.
Make
Create
Or
Replace
Trigger Usertotemp after
Insert
Or
Update
Or
Delete
On T_cs_one
For Each row
Declare
Integrity_error exception;
Errno
Integer ;
Errmsg
Char (
200 );
Tem1
Varchar2 (
10 );
Begin
If Inserting
Then
Query the table space Path:
Select * From dba_data_files
Instance:
1. Create tablespace ucitdb_data
Logging
Datafile '/home/APP/Oracle/oradata/ucitdb/ucitdb_data01.dbf'
Size 32 m
Autoextend on
Next 32 m maxsize 2048 m
Extent
Run the following commands in sqlplus:
Connect system as sysdba; -- Be sure to log in as DBA; otherwise, an error will be reported belowShutdown immediate; -- this is to disable the session currently connected to the database. If a session is
The exp export tool compresses data backup in the database into a binary system file, which can be migrated between different operating systems.The IMP import tool imports binary system files generated by exp into the database. 1. Export tool exp1.
Problem:
---------------------------
When Oracle listening service is startedThe oracleorahome92tnslistener service on the local computer is stopped again after it is started. Some services are stopped automatically if there is nothing to do, such
First install the two software. Then modify
Tnsnames. ora file to add a database.
Modify as follows:
Add:
demo = (description = (address = (Protocol = TCP) (host = 10.0.3.162) (Port = 1521) (CONNECT_DATA = (Server = dedicated)
Oracle File System: control file (. CTL), data file (. DBF), log file (. Log)
There is also a parameter file for the three files. The parameter file is not an effective part of the database system. When the database is started, the parameter file
I recently learned about Oracle databases and encountered some minor problems during the installation process. Although it was a minor problem, it made me spend a lot of energy trying to sum up and finally solved the problem, the mood is
Sometimes we may not know the password of a user, but we need to perform some operations with this user, and we cannot modify the password of this user. At this time, we can use some tips, to complete the operation.
The procedure is as follows:
SQL *
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service