1. Run sqlplus "/As sysdba" in cmd"
2. SQL> shutdown immediate
3. SQL> startup starts the service. check whether any data file loading error occurs at startup, and remember the error data file number.
4. SQL> alter database datafile 'xx. dbf'
About parent vs child latches. There is no fundamental low level difference between parent and child latches, they are all small regions of memory modified with atomic test-and-set style Opcodes.
You see parent (and solitary) latches from x $
In the absence of visual tools to monitor database performance, common scripts come in handy. Below are a few scripts related to Oracle performance for your reference. The following scripts are successfully tested in Oracle 10 Gb, and Oracle 11 GB
Oracle db_file_multiblock_read_count is an important global parameter in Oracle, which can affect the system level and sessioin level. It is mainly used to minimize the number of data blocks that Oracle can read at a time in order during table scan.
Create Table table name as select * from EMP; equivalent to dividing the EMP table into another data control language: DML (data manipulation language-data operation language) you can execute the following conditions: • insert data into a table •
IMP andExpCommand details:
Exp
ExportMode:
Full mode ---
Export
Entire database user mode ---
Export
Specified user table mode-
Export
The specified
Table
Tablespace mode-
Export
Table
Space
Exp
ExportParameters:
Owner specifies
Export
User List
A package consists of a package specification and a package body.
1. package specification)
The packet specification, also known as the packet header, contains information about the package content. However, it does not contain any process
1. Use the following method to call all in-type parameter Processes (the ibatis version is 2.3)
For example:
Procedure flashback_op (v_table_owner varchar2, v_table_namevarchar2, v_flashbackscn number, v_xid varchar2, v_dbid number );
Call
Bulk binding accelerates the efficiency of SQL statements by binding a complete set at a time and processing data in arrays within the PL/SQL block. Two DML statements are used: bulk collect and forall. Bulk collect-used to improve query (select)
---------------------------------------------------------------------------
Set echo off;
Set feedback off;
Set verify off;
Set pagesize 0;
Set termout on;
Set heading off;
Accept username char prompt 'Enter the index Username
If you want to obtain the employee record with the highest salary for each department, you can use the following four methods:
Create an example table firstCreate Table EMP
As
Select * from Scott. EMP;
ALTER TABLE EMP
Add constraint
In the PL/SQL program, we will first retrieve several records from a result set and then process each record, the best practice is to complete it in an SQL statement, but sometimes it may not be implemented because of the requirement. Therefore,
Database Name (db_name), database instance name (instance_name), operating system environment variable oracle_sid, Database Service name (SERVICE_NAME), Database domain name (db_domain), and Global Database Name (global_db_name) is a few concepts
Username: SYS
Password: change_on_install
-----------------------------------------------
Warning! The password of sys is a default password. It is well known to hackers
Additional information:Sys is Oracle's most powerful database management
1. Put the first RedHat as3 CD into the optical drive, reboot the machine and boot the optical drive. After the installation, I advise you to use the English character set, because I have used Chinese once and I feel a little uncomfortable. If the
/* 1. Select all information about employees in department 30 */Select * from Scott. EMP where deptno = '30'/* 2. List the number and name of the employee whose position is Manager */Select empno, ename from Scott. EMP where job = 'manager'/* 3.
Haha, just received an oracle offer notification
I'm so glad to hear about it.
I have submitted some resumes since I plan to change the environment again recently.
Oracle was the first to reply to me
From today's offer perspective, the interview
C: \ Documents ents and Settings \ yhy> emca-deconfig dbcontrol DB-repos dropemca started at 2012-10-15 21: 56: 56em configuration assistant, official version 11.1.0.5.0 copyright (c) 2003,200 5, Oracle. All rights reserved. Enter the following
A database is a shared resource used by multiple users. When multiple users access data concurrently, multiple transactions can access the same data simultaneously in the database. If concurrent operations are not controlled, incorrect data may be
During the project, we often encounter issues that are summarized by departments and personnel. It is quite convenient to handle such problems in Oracle! The following describes the instances encountered in the project:
The query statement is
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