Install Oracle in Linux X window, the pop-up Oracle interface is garbled (square) Reason: Oracle installation default no Chinese language pack, only in English.
Solve:
1. Temporary Solution:
The code is as follows
Copy Code
System permissions (Database system privilege) allows users to perform a specific set of commands. For example, the CREATE TABLE permission allows a user to create a table, and grant any privilege permission allows the user to grant any system
The easiest way to use
The code is as follows
Copy Code
Select t2.*From (select RowNum r,t1.* from youtable t1 where rownumwhere T2.r>?
The number of bars that are smaller than the largest, or larger than the
Usage
1.TRUNC (for dates) Date action
The date value that the Trunc function truncates for the specified element.Its specific syntax format is as follows:TRUNC (Date[,fmt])
which
Date valueFMT the date format, which is truncated by the specified
To query for a short period of time can be from v$sql or V$sqlarea if you want to query a week or one months then there may be in the V$sqlarea can not find! The following is obtained through the historical Dba_hist_sqlstat, which is retained by
. Sysdate
Used to get the current date of the system
Sql> Select To_char (sysdate,dd-mm-yyyy day) from dual;
To_char (Sysdate,
-----------------
09-05-2004 Sunday
Trunc (DATE,FMT) truncates the date according to the requirements given, if
ALTER table: Add, modify, delete table columns, constraints, and other table definitions.
View column: Desc table name;
Modify table name: ALTER TABLE T_book Rename to BBB;
Add column: ALTER TABLE name add column name varchar (30);
Delete column:
To switch the physical library to the read only state, you can use the following steps
The code is as follows
Copy Code
Sql> select status from V$instance;STATUS------------MountedSql> select Database_role from
Example 1
The code is as follows
Copy Code
–select * from TMN_ZHBG ORDER BY id DESCSelect ID, mc,fs,class,sum (FS) over (the order by Fs,id) continuous accumulation, sum (FS) over (order by FS) continuous accumulation of
The main contents of this article include: Implement the self-amplification ID in Oracle, delete the duplicate record in the data tableI. Self-Amplification ID
1. Create sequence firstCreate sequence Seqmax increment by 12. Get an IDSelect
The earliest discovery of this problem was in the Memetniyaz analysis, if the SQL statement in the database
The code is as follows
Copy Code
SELECT * FROM table name where To_char (' Date field ' in table ', ' yyyy-mm-dd
The default Java in the Debian source is openjdk, and the current version is 7. If you need to install the official Oracle JDK8, you can install the official JDK by using java-package:1. Installation Java-package# Apt-get Install Java-package2.
I. Allocating space to empty tables:
This step must be done, otherwise an empty table cannot be exported.First connect the library you want to export, and execute the following SQL on the library:Select ' ALTER TABLE ' | | table_name| | '
Encounter a requirement: in the already built database, add the same 3 fields for each data table.Analysis: Data tables in the database are many, one-by-one manual modification time-consuming inefficient, can you use the program to traverse each
Log in to the connection using the Sqlplus toolStart-"Run cmd-" c:\users\admininstrator> sqlplus Please enter your username: [email protected] As SYSDBA enter password:rootsql> or direct input sqlplus sys/[ Email protected] as SYSDBA enterQuerying
Oracle Startup DatabaseStartup [nomount| Mount| open| Force] [Restrict] [pfile=filename]Launch the instance, load the database, start the databaseOracle shuts down the databaseShutdown [Immediate|normal|trasanctional|abort]Close the database, unload
First, IntroductionStored procedure: is a program created in the database for others to call. Actually, I feel like I'm defining a method.Two, no parameter stored proceduresAs below, the classic output "Hello world" to get started stored
Example: delete user abc,First, log on to the database as a sysdba user.$ Sqlplus/as sysdbaDelete User abcSQL> drop user abc cascadeNote: If the user abc is deleted, the schema objects under the user is deleted, and the corresponding tablespace is
* To change the template of the generated file in TODO, go* Window-preferences-Java-code style-code template*/Package person. fane. test;Import java. SQL .*;/*** A jdbc test application for Oracle* @ Author Fane* @ Version 1.0.0* @ Since
A simple table is used. mysql and oracle use the same table structure and have only three Fields. The structure is as follows:Mysql table structure:Create table board (Board_id smallint (6) not null auto_increment,Board_name char (16) not null,Board_
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