After the Oracle database is installed, users such as Scott are locked by default and cannot log on to the database with Scott users.Log in with the user with ALTER USER database permission, and select Sysdba to execute the following command:Unlock
http://study.163.com/course/courseLearn.htm?courseId=932016#/learn/video?lessonId=1115367&courseId=932016Super Admin Sys/change_on_installGeneral Administrator System/managerNormal User: Scott/tiger (need to unlock)Big Data User (instance scenario
This document implements the target AIX tablespace: ITDB mode: Capacity expansion scheme for bare devices Author: johncoco Date: 2016/1/291. Query the raw device files used by Oracle database tablespace ITDB , note the bare device files (starting
DROP TABLE * * * * purge;/to delete tables free space:If you do not add purge then it is equivalent to just put it in the Recycle Bin.Purge RecycleBin; /Empty Recycle BinGet current date (without time) select To_char (sysdate, ' yyyy-mm-dd ') as
1.rownum and sortThe rownum in Oracle is the sequence number that is generated when fetching data, so it is important to be aware of the rowmun rows of data that you want to specify for the sorted data.Sql> Select RowNum, id,name from student order
When we use the Oracle database, suddenly power outages, causing a lot of problems, resulting in the loss of old data, affecting the correctness of the data, destroying the database. At this point, users desperately need to recover data. This
1. Create a table in SYS mode that records the details of the client's login to the database serverCreate Tablelogon_logs (logon_time date,usernamevarchar2( -), machinevarchar2( -), Ipadrvarchar2( -), programvarchar2( -), modulevarchar2( -),
1. Create a table spaceCreate'/u01/oracle/oradata/orcl/yyy01.dbf' on Next 50m maxsize unlimitedextent Management local2. Create a userCreate User by yyy default tablespace yyy Temporary Temp DEFAULT3. User authorization--Grant/revoke Object
Test the stored procedure with the landlord:1. Right-click the stored procedure you want to testThe following prompt box appears2. Fill in the parameters3, click to start, the following actionsOver, that's so
First check the Oracle parameters: Sql> Show Parameters SGA; NAME TYPE VALUE------------------------------------ ----------- -------LOCK_SGA Boolean TRUEPRE_PAGE_SGA Boolean TRUE If the value of the above two options is false, it needs to be
CREATE TABLEt_smaint_2016012703Parallel 4 nologging asSELECT /*+parallel (4) leading (s a) Use_hash (a) index (s idx_cs_service_record_md2_04)*/s.smaint_id, S.smaint_desc fromT_cs_service_record SJOINT_cd_maint A ona.smaint_id=s.smaint_id ands.sorg_
1. Log in with an Oracle userIf you want to install again, it's best to do some backup work first.Includes the user's logon script, the database automatically starts the closed script, and the listener automatically starts the script.If possible,
Custom variablesvariable x varchar (20) Note: The variable x is preceded by a colon, which indicates that this is a variable.The x variable is set, and when the cmd window is closed, the variable is invalidated. [Glogin.sql]
[Email protected] init.d]# Vim Oracle#!/bin/sh# chkconfig:35 80 10# description:oracle Auto Start-stop script.## Set Ora_home to being equivalent to the $ORACLE _home# from which-Wish to execute Dbstart and Dbshut;## Set Ora_owner to the user ID of
1. Installing ORACLE-JDKTo open the terminal, use the following command:Java -version If you see output like the following, this means that you have not installed Java:The program 'java' can is found in the following packages: /c9> * default-JRE *
Migrate the entire database and database1) migrate the entire database, and then upgrade the database.
Step 1:Stop the database normally, and restart the database in read-only mode.
Startup mountAlter database open read only;
Step 2:
Basic methods for creating indexes in Oracle databases, oracle Indexes
How to create the best index?
1. Create an index explicitly
create index index_name on table_name(field_name)tablespace tablespace_namepctfree 5initrans 2maxtrans
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