Analyze table can typically specify analysis: Table, all fields, all indexed fields, all indexes. If not specified, all are analyzed.
sql> Analyze table my_table compute statistics;
sql> Analyze table my_table compute Statistics for table for all
In Java Operations on Oracle, date fields are a headache, but it is not difficult to grasp the matter carefully.
Give an example to illustrate:
There are name VARCHAR2 (20)//book names in table books, Buydate date//Purchase two fields.
A database
2010-3-10
http://localhost:5500/em/How to start
Starting service: (1) dbconsole (2) Oracleservice; (3) Tnslistener
In IE input: http://localhost:5500/em, the following error occurred:
"The database state is currently unavailable. This may be
Interpretation in document: It returns TRUE if an INSERT, UPDATE, or DELETE statement affected no rows, or a SELECT into statement returned no Rows. Otherwise, it returns FALSE.
The explanation is more subtle:
%notfound is the logical opposite
Today in the virtual machine in the centos6.3 system installed Oracle 11g out of many problems, first record the interface garbled problem bar.
This interface appears during /runinstaller installation:
Zysong.ttf download is an Oracle font
Workaround:
1. Login with DBA role;
2, enter the following format command unlock:
Alter user username account unlock;
3, if the password forgotten, enter the following format command to modify the password:
Alter user username identified by new
Oracle databases sometimes accidentally delete data, want to query this data, or recover data, you can use a SELECT statement with the AS clause for a flashback query.
Flash-back query for data from a time period in the past
SELECT * from TB
as
There are five main loops: Exit when, loop, while, for (normal loop), for (cursor loop), and below for example one by one (all stored procedures).1, Exit when cycle:Create or replace procedure Proc_test_exit_when isI number;Begini:=0;LOOPExit when
This example has been completely tested, one-way, and synchronized to be used.
--Noun Description: Source--The database being synchronizedPurpose-the database to sync to
The first 6 steps must be performed, after the 6th is some auxiliary
1. First put the top 4 packages under the Lib folder
2. Configure XML, placed in the SRC directory
ommentgenerator> Rator targetpackage= "src.
Map "targetproject=" src ">
3. Write Execution
1, problem phenomenon
2. Solution Method
The first step: the current SOLARIS10 system login is logged in as root, when the mouse click on the desktop, right again "open terminal"
Step Two: enter bash, switch to bash-3.00, if not, the
/*
Quick Flashback
PROCEDURE
PACKAGE
PACKAGE body
type body
TRIGGER
FUNCTION
type
1. Use the SYS administrator
to log in 2. Command Window execution (for easy access to data, will retrieve the data stored in TXT
Use Oracle users to execute the following script:
#!/bin/bash
source/etc/profile
export Nls_lang=american_america. ZHS16GBK
#Oracle的字符集, the Chinese character set for the Oracle database is American_america. ZHS16GBK
#Oracle数据库的根目录
export
First define cursors and variables
CURSOR C1 is SELECT ename,ejob from emp WHERE deptno=10;
V_name VARCHAR2 (10);
V_job VARCHAR2 (10);
First: Using loop loopsOpen C1;LoopFetch C1 into v_name,v_job;Exit when C1%notfound;......End LoopColse C1;It is
Oracle in%rowtype:
%rowtype: Indicates that the type is a row data type, stored as a row of data, a row with many columns, equivalent to a row of data in a table, or a row of data in a cursor.
The%rowtype effect is that when querying the entire
SUBSTRING, this function is used to find a string of strings, the function of the use of high frequency.
Sample string: "2011-11-17"
The function to ask for a string in Oracle is: SUBSTR
The syntax for the SUBSTR function is:
substr (String,
One, EM
1. View EM Status:
#emctl Status Dbconsole
2, Start em:
#emctl Start Dbconsole
3. Turn off EM:
#emctl Stop Dbconsole
4, Rebuild EM: (Note: When the computer network environment changes, such as the cause of the EM can start, but the
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