Usually when the current control file is lost, or if the current control file is inconsistent with the control file that needs to be recovered, we need to recreate a control file or use the Unsingbackup Controlfile method to recover the control file.
1, modify the user
(1) Modify password
09:57:30 sql> alter user tiany identified by Tianya;
User altered.
(2) Modify table space quotas
Table space quotas are used to limit the maximum space that a user object can occupy on a table space.
09:59
This is one of the Oracle's original brothers asked me a question, and then some people asked the question:
Use Oracle internal principles to describe the following procedures:
1, Sqlplus GYJ/GYJ@ORCL
2, Updatet_gyj set name= ' gyj1 ' where id=1;
1. Definition
Function: accepts 0 or more input parameters, has a return value, and the data type of the returned value is defined when the function is created.
function Example 1
CREATE OR REPLACE FUNCTION Tax (p_empno in number)
Return number
Q: Hello, I ran the following code in the Oracle 9i database:
CREATE OR REPLACE TYPE persona as OBJECT (ident varchar2 (9), nombr varchar2 (30)); CREATE table Tper (per persona); INSERT into Tper values (Persona (' n ', ' Lucas ')); SELECT * from
Problem Description:
Implementation of the Oracle automatic backup script.
Error tip 1:
Message file RMAN.MSB not found
Verify that Oracle_home is set properly
。。。。。。
Error Reason:
Automatic execution does not recognize the appropriate
Password complexity is an important aspect of it auditing staff to check whether a system is secure.
It policies often indicate that passwords should have a minimum length and should contain a mix of uppercase letters, small letters, numbers, and
1 Introduction
Oracle database, as a large relational database with high reliability, high security and high compatibility, has been widely used in the fields of finance, communication, medical care, manufacturing and so on, and has gradually
Oracle Paging query statements can basically be applied in the format given in this article.
Paging Query format:
SELECT * FROM
(
SELECT a.*, RowNum RN
From (SELECT * from table_name) A
WHERE RowNum
)
WHERE RN >= 21
The most inner query
Session leader and Apps Associates founder, CEO Sridhar Bogelli is based on mass application development advisor, warns Oracle developers should properly use the tools provided by Oracle and Third-party vendors to help them and their companies avoid
1, installation
Run script with sys user Utlxplan.sql
The script to build this table is: (UNIX: $ORACLE _home/rdbms/admin, Windows:%oracle_home%\rdbms\admin) ultxplan.sql.
Sql> connect sys/sys@colm2 as SYSDBA;
Sql>
The. NET remote connection Oracle database looks pretty simple, but there are still a lot of problems. Let me share the experience of tossing this thing today.
There are many ways to access Oracle database, I use OleDbConnection, this is nothing to
oracle|sql|xml| Generate XML
Of course you can encode the recordset as XML yourself, but it's cumbersome and inefficient. Here's a new way to do this:VB Code:Dim objconn as New ADODB. ConnectionDim objRS as New ADODB. RecordsetDim objstream as New
ALTER DATABASE open resetlogs This command I think we all very familiar with, then did not think of this resetlogs option why use? When do you use it? What is the principle mechanism of it? What role does he play?
We all know that data is going to
In Sql_plusSpool Execcompproc.sqlSelect ' Alter PROCEDURE ' | | object_name| | ' compile; ' From all_objects where status = ' INVALID ' and object_type = ' PROCEDURE ';Spool off@ExecCompProc. Sql; Organize into a stored procedureCreate Or Replace
Oracle provides a variety of diagnostic tools for the RDBMS, and diagnostic events (event) is one of the common, easy-to-use methods that enable DBAs to easily dump database structures and track specific occurrences.
The usual format and
1. First look at the name of the tablespace and the file you belong toSelect Tablespace_name, file_id, file_name,Round (bytes/(1024*1024), 0) Total_spaceFrom Dba_data_filesOrder BY Tablespace_name;
2. Additional Data files
Alter tablespace users
Oracle has launched a new execution plan with two tips native_full_outer_join and no_native_full_outer_join to control this execution plan.
The use of these two hint is simple and requires no additional parameters. The following example continues
From 10g, Oracle can recover the wrong statistics.
This article briefly describes the statistical information recovery feature.
Inaccurate statistical information may lead to the inability to produce optimal execution plans, and for the most part,
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