Programmers who are involved in programming may encounter an Oracle URL that is not valid when connecting to Oracle, and the following small compilation teaches Oracle to view the instance name method to help you solve this problem.
Oracle View
A PRKC-1002 error was encountered while installing Oracle RAC in VMware Server 1.0.8: warning:error while copying directory/u01/oracle/product/ 10.2.0/db_1 with exclude file list ' null ' to nodes ' rac2′. [Prkc-1002:all the submitted commands did
1. In Oracle:
Select org_id
From organizations
Start with org_id=: org_id
Connect by Prior org_id=supervision_org_id
ORDER BY supervision_org_id
2. SQL Functiong:
Functionno Subfunctionno Subfunctiontype
Systemadmin Privilege 0
Systemadmin
Select DISTINCT (t.f_resume_id| | T.f_resume_status), T.f_resume_status,t.f_resume_status,t.f_recruit_channel,
t.f_small_channel_id
From CSS. T_resume_info T where T.f_resume_status in (80011,80012)
Distinct multiple fields, and of course the
After a large number of deletions to the table, there may be a lot of free space can be recycled, the relevant calculation methods refer to the following:
UPDATE STATISTICS
Analyze table compute Statistics;
Calculate Fragmentation Space
SELECT
It is appropriate to use this statement when you frequently encounter the insertion of data into several different tables during Oracle operations. All represents a non-short-circuit operation, that is, if the first condition is met, and a check is
Execute the same statement on two databases
Select code_id code,code_value Name
From code_value_t t
where code_id like ' 0_ '
and Class_code =
ORDER BY code_id
A normal, another but the error ORA-01722, the same field type, the same database
1. The origin of the problem
When the Oracle database field value is less than 1 decimal, processing with the char type loses 0 of the preceding decimal point
For example, 0.35 becomes. 35
2. Solution: Format digital display with To_char function
oracle| Data | database | Operation intersect Operation
Returns the same part of the query result
Exp: what are the same types of jobs in each department
oracle| Conversion
Author: eygle Source: BLOG
The transformation of the system is often needed in the development, this paper introduces several commonly used transformation methods.
116 binary conversion to 10-system
Can be implemented through the
oracle| Stored Procedures
I do not know how to debug a stored procedure when I write it. One way to debug this is to print out the value of a variable in a program that I print on the console in Java. Here's how to do this from the Sqlplus.
1,
When looking at Oracle execution plan, you often encounter access and filter, the brain capacity is too small, always confusing the difference between the two ... Tidy up a little.Access: Indicates that the corresponding predicate condition affects
--Insert Add StatementInsert intotable_name (column_name,column_name,...)Values(Data1,data2,...); --adding data through a table Insert intotable_name (column_name,column_name,...)SelectColumn_name,column_name,... fromtable_name; --To create a
--Select SyntaxSelect [DISTINCT | All]select_list fromtable_list[Where_clause] [Group_by_clause] [Having condition] [Order_by_clause] --Syntax Description Select: Query The action keyword, you must have it. [DISTINCT | All]: The query field is in
1,%TYPEIn order for a newly defined variable to conform to the data type of another defined variable (usually a column of a table), Oracle provides a way to define the%type, and when the data type of the referenced variable changes, the data type of
Find the user and the corresponding tablespace:===================> select Username,default_tablespace from Dba_users;Service name (Tnsnames.ora inside corresponds global_dbname) ===================> show parameter service_nameInstance name
1, take the first day of the year and the last day of the yearSelect Trunc (sysdate, ' YYYY '), Add_months (Trunc (sysdate, ' YYYY '), 1 from dual TSelect To_char (Trunc (Add_months (Last_day (Sysdate),-1) + 1), ' yyyy-mm-dd ') "The first day of the
1. When querying, use the name of the column as much as possible;2. When the sub-query and multi-table query can achieve the goal, try to use multi-table query;3. In a set operation, if the collection contains null, it cannot be in, but can be used
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