Code, inserted into the Oracle database, Chinese garbled. With Pl/sql developer, but nothing.
Looking for, and said that the character set, and said nothing, do not work. Simply will heart a horizontal: I this code is the direct execution of the SQL
1 Select all information about the employee in Department 302 List the number of employees whose position is (MANAGER), name3 Find bonuses above the salary of employees4 Find the sum of each employee's bonus and salary5 Find the manager in
Create a table space
Create tablespace l_l
datafile ' D:luo. DBF '
size 5m
autoextend on next 4m
MaxSize Unlimited;
Create user default table space
Create user Luo identified by 123456 default Tablespace l_l;
Modify user Default space
Alter
Create user Cmsuser identified by "Cmsuser";
Sql> create user Uumcuser identified by "password";
User created.
Sql> Grant CONNECT,DBA to Uumcuser;
Grant succeeded.
Sql> Grant Exp_full_database,imp_full_database,resource,create any sequence to
Popular point to say
First you install Oracle, which is a software in itself, right.
Once Oracle is installed, you can create a database
This is a warehouse, a place to put things.
Then this warehouse (database), there is a warehouse
Create or Replace function Get_strarraystrofindex
(
Av_str varchar2,--string to be split
Av_split varchar2,--Separator symbol
Av_index number--take the first few elements
)
return VARCHAR2
Is
LV_STR VARCHAR2 (1024);
Lv_strofindex VARCHAR2 (1024);
Lv_
use of the To_char () function in Oracle
Ext: http://blog.csdn.net/jiangnan2014/article/details/16908585
(1) As Date conversion:
to_char (date, ' format ');
Select To_date (' 2005-01-01 ', ' YYYY-MM-DD ') from dual;
Select To_char (sysdate, ' Yyyy-
Problem Description:Aix-oracle database connections cause archive log full
Solution:1. Delete Archive logs manually
2.rman Delete Archive Log$rman Target/Rman>select * from V$flash_recovery_area_usage;Rman>delete Archivelog from time ' sysdate-1
Oracle automatically creates partitions on a daily basis
Due to the accumulation of a table in the database, the table space is not built, but the table is not partitioned, and the deletion time is often caused by the DELETE statement timeout. So
Select a row in a table: (Understanding: RowNum is an Oracle system order is assigned the number of rows returned from a query)SELECT * FROM (select RowNum a,t.* from Testtab t) where a=2;Cannot be:SELECT * FROM (select rownum,t.* from Testtab t)
Select a.file_name,a.autoextensible,a.maxbytes,a.increment_by from Dba_data_files A;
--autoextensible automatically expands--maxbytes maximum--increment_by number of automatic expansion blocks
Sql> Show Parameter Db_blockNAME TYPE VALUE-----------
First, Oracle's startup and shutdown
1, in a stand-alone environment
To start or shut down an Oracle system, you must first switch to an Oracle user, as follows
Su-oracle
A, start Oracle system
Oracle>svrmgrl
Svrmgr>connect
Using storage to implement
Create or Replace procedure proc_dropifexists (
p_table in varchar2
) is
v_count number (a);
Begin
Select COUNT (*) into the
v_count from
user_tables
WHERE table_name = UPPER (p_table);
Oracle Security includes 2 major categories
Oracle's database system security. Mainly includes the word system level to control user access to the system resources in the database, such as user name, password, user's system operation and the disk
Operating environment: Installing Tests on your own notebook computer
Operating system version: 64-bit win8.1
Oracle version: 64-bit Oracle 11g
Oracle successfully installed//logged on to Oracle as Administrator
Enter command in cmd sqlplus/as
What is ORACLE
Oracle database system is one of the most popular database of client/server (client/server) or b/s architecture, which is provided by Oracle Corporation (Oracle), a group of software products based on distributed database.
ORACLE
Oracle Functions--common functions
NVL (EXPRESS1,EXPRESS2):
If the first expression is empty, the value of the second expression is displayed; If the first expression is not empty, the value of the first expression is displayed;
NVL2
1. Create:
CREATE SEQUENCE emp_sequence --sequence name
INCREMENT by 1- -if omitted, the default is 1, and if negative, the value of the sequence is decremented by this step. Start
with 1 -counting the Nomaxvalue from 1- without
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