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
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
Oracle queries contain special characters%,_,&, and you want to query the contents of a field in a datasheet that contain this special character, you need to use the escape character, or the method of stitching the string.
0. The original
First, Profile functionProfile in Oracle systems is used to limit the database resources that users can use.Second, profile parameters detailed(1) View database resource constraint parametersSql> select * from Dba_profiles;
Profile Resource_name
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
Create or Replace function Row_split (var_str in String, Var_split in string) return
t_ret_table
pipelined
as Var_tmp varchar2 (4000);
Var_element varchar2 (4000);
N_length number : = Length (var_split);
Begin
Var_tmp: = var_str;
Step One:
Locate the session information for the specified user, and draw up the execution script:
#!/bin/kshecho "Conn Sys/sys as SysdbaSelect ' Alter system kill session ' ' | | Sid | | | serial# | | | ' From sys.gv\ $session where username= '
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, add a reference to the Oracle.DataAccess.dll in the Project reference section.
Using Oracle.DataAccess.Client; Introducing Oracle.dataaccess namespaces
OracleConnection conn = new OracleConnection ("User id=user; Password=pwd;data SOURCE=ORCL
Use the root user to manipulate the following:
First, create a new folder in the $oracle_home/jdk/jre/lib/fonts directory fallback
#mkdir fallback
Second, from the window System windows/fonts copy SIMSUN.TTC font files to the new fallback
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