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
1. view the EM port of the database instance
In the ORACLE_HOME \ install \ portlist. ini file.
Ii. Sid of the database instance
The SID length cannot exceed 8 characters. The instance name cannot exceed 30 characters
Iii. Common commands
Start/
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
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
Allow users to access objects belonging to other users or executeProgramThe Oracle system provides three permissions:
Object-level
System system level
Role role-level
These permissions can be granted to users and special users as public or
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
Exists(The result set returned by SQL is true)NotExists(The result set is true if SQL does not return)
As follows:TableTable B
The relationship between table A and table B is one-to-many. A. ID=>B. Aid
SelectA. IDFromAWhere Exists(SelectA.
Create Or Replace Package pagequery_pack Is -- Author: Administrator -- Created: 15:47:30 -- Purpose: FEn ye Cha Xun -- Public type declarations Type cur Is Ref Cursor ; -- Public Function and procedure declarations
Key factors affecting Oracle Efficiency
Original http://hi.baidu.com/odbcconnection/item/f4a56cbf1c8bea422bebe32f
1: select the most efficient table name sequence (only valid in the rule-based Optimizer) OracleThe parser processes the
This stored procedure is as complicated and strange as my mind...
First, we will introduce the structure of the hr_department table.
The main columns can be classified into the following items:
SelectT1.cpny _ idAsCompany_id, t1.deptid dep_id,
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
1. Create a user information table
Create Table user_info (Id varchar2 (4 ),Name varchar2 (20 ),PWD varchar2 (20 ),Address varchar2 (30));2. Create a stored procedure named addnewuser using SQL statements.
Create or replace procedure addnewuser
Thank you for your mission.
ReferencesHttp://wenku.baidu.com/view/39b2e437b90d6c85ec3ac6af.htmlHttp://wenku.baidu.com/view/39b2e437b90d6c85ec3ac6af.html
Local Operation Records
D: \ oraclexe \ app \ oracle \ product \ 10.2.0 \ Server \ bin>
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
Step 1:
Windows OS 7 flagship Edition)
Create a tablespace and allocate it to a user.
1. Install the Oracle service
1. Installation File
E: \ f \ development tool \ dB \ oracle \ oraclexe.exe
2 installation path
D: \ oraclexe
3
How can I execute SQL statements in PLSQL stored procedures?
Use dynamic SQL Execution:Execute immediate
Table Information
Select * FromEmp_temp;
Stored Procedure
Create Or Replace Procedure F_delete_rows (
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