How to trace from a child node to a parent node in Oracle.
For example, there is a table:
GUID Parentguid
1 0
2 1
3 1
4 2
5 2
6 5
7 5
8 7
We can detect all the child nodes under the GUID from the GUID 1 according to the parentguid
Scenario: There is a database encoded as UTF8 on the server, and then the local is ZHS16GBK. I directly with the EXP command to guide down, found that the database is garbled.
Resolution process: Because the code on the server is not easy to change,
Due to field application needs, the newly configured Oracle RAC environment needs to be added with 2 Scanip addresses, 10.138.129.106 and 10.138.129.107.
Pre-configuration scenario:
[grid@db1 ~]$ srvctl config scan----View configuration information
Today the program works locally and can be posted to the server The Times a ORA-00911 invalid character error
This error is due to a problem with the SQL statement, check the SQL did not see any problems, the results were taken to the library inside
Installing oracle11g on Centos6.4 does not set the character set, using the operating system default character set: we8mswin1252, which modifies the character set to: Al32utf8.
Sql> Select Userenv (' language ') from dual;
Simplified Chinese_china.
Each group of queries can get its result set, if the need to combine multiple query results into a result set, can be implemented by the set operation.
such as union, and set, and do not remove duplicate rows (unoin all), intersections (INTERSECT),
method One:
Control Panel-> management Tools-> Service-> Oracl ... Database name ...
Method Two:
Run Services.msc Open service, put the inside of the Oracleservice. Just wait for the service to start.
Method Three:
Linux, it's got
Reason
Oracle Httpserver takes up 8080 ports
Solution 1.
Find the Server.xml under the Conf folder under the Tomcat directory
Modify
maxthreads= "minsparethreads=" maxsparethreads= "75"Enablelookups= "false" redirectport= "8443" acceptcount=
* This import export method is fully applicable to the partition table * prepare before exporting, importing
Note: Use System user actions such as SYS, systems, and so on.1) Create directory objects
CREATE DIRECTORY exp_dir as '/oracle/db/zone ';
For some reason, Oracle on the old computer is often disconnected, and the newly bought computer is normal, and all three-party software that connects to Oracle is disconnected, like pl/sql.
So, I wonder what the cause is.
1, here to cite a
Oracle has a number of views built into the SYS user scenario that we can use to easily view system-related information. We can call these views without schema, and here are some
Summary of views about user, role, and permission information:
(1) all_
A stored procedure is a program block stored in a data dictionary that can be shared among different users and applications, and enables optimization and reuse of programs.
First, the creation and execution of stored procedures
1. Create stored
Performance optimization for Oracle databases
Mainly from internal storage structure, logical partitioning, table structure paradigm, SQL statement optimization.
Hibernate at higher levels, mainly from caching, and the use of SQL statements
For
2.TRUNC (for number)
The TRUNC function returns the processed value, which works very much like the round function, except that the function does not round the specified decimal number before or after the appropriate rounding selection.
Its specific
Oracle 11g introduces snapshot Standby, which allows Standby database to be opened in Read-write mode. When switching back to standby mode, all modifications in the Read-write mode are lost. It is implemented through the flashback database, but
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