Sometimes when you connect to the database, you will find that the database cannot be instantiated. When you start Tomcat, you may see the following error message:
Listener refused the connection with the following error: ORA-12514, TNS: Listener
the following example connects to the Oracle database (name) in C #, reads data from the table (tablename), and writes data to excel.
string cnstring = "provider = msdaora.1; Data Source = Name;"; cnstring = cnstring + "User ID = username;
Computing time difference is a common problem of ORACLE data types. Oracle supports date calculation. You can create expressions such as "date 1-date 2" to calculate the time difference between the two dates.
Once you find the time difference, you
RunSelect num_rows, table_name from user_tables where num_rows> 0, Can achieve the effect.
However:Sometimes the data is inaccurate because the table must be analyzed before the query is executed.
The analysis table syntax is: Analyze table
To_date format (take time: 13:45:25 as an example)Year:YY two digits two-year display value: 07YYY three digits: 007Yyyy four digits four-digit year display value: 2007Month:Mm Number: 11Mon abbreviated Character Set indicates the displayed value:
Data Type comparison
Type name
Oracle
Sqlserver
Comparison
Character Data Type
Char
Char
All are fixed-length characters,OracleThe maximum size is 2 kb.Maximum length8 KB
[Statement]: This article can be reproduced at will, but please indicate the source: http://www.cnblogs.com/hanxi/
The Linux system I installed is Oracle Linux, which is fully called Oracle Enterprise Linux. Is downloaded from the Donkey:
Method 1
Today, I want to compare two characters in the stored procedure, but I found that the expected results were not obtained. The main problem is that the comparison of any value and null results are null, I found two methods on the Internet
Summary of usage of temporary tables in Oracle databasesHttp://computer.online.sh.cn 2004-11-11 16:41:00
Note: Some descriptions and examples belowCodeFrom csdn, we will not specify the source one by one. I would like to express
You can modify it on the database server:
In the init file: nls_date_format is set to YYYY-MM-DD
You can also modify the registry or environment variables on the client.
Name: nls_date_format
Values: yyyy-mm-dd
The explicit display of the
OCR command Series
Oracle clusterware places the configuration information of the entire cluster on shared storage, which is OCR disk. in the entire cluster, only one node can perform read and write operations on the OCR disk. This node is called
Guidance:
Oracle 8i Database Server is a highly optimizable software product. Regular adjustments can optimize system performance and prevent data bottlenecks. By adjusting the database system, we can achieve optimal performance to meet user needs.
1. view the SQL statements that consume the most memory (V $ sqlarea)
1 Select B. username, 2 A. buffer_gets, -- The number of times the sub-cursor runs this statement. 3 A.exe cutions, -- Number of times that this statement is executed by
Guidance:
Common Oracle dump commands, record for future reference
1. Memory dumps
1). Global Area
Alter session set events 'immediate trace name global_area level n ';
1 Including PGA
2 contains SGA
4 include UGA
8 contains indrect memory
2).
I read a lot of articles about Oracle provider in codesmith2.6. Codesmith3.0 was rarely seen about this. It was tested yesterday.
Enter codesmith's community, http:
// Community.codesmithtools.com/files/9/schemaproviders/default.aspx, in this
Select E. employee_id, E. last_name, D. department_id, D. department_nameFrom HR. Employees e left Outer Join HR. Orders ments dOn E. department_id = D. department_idSelect E. employee_id, E. last_name, D. department_id, D. department_nameFrom HR.
Recently, the disk space of the Oracle server in the development environment is full, so I began to delete things everywhere and finally delete the files. I started to think about ORACLE data files again, due to the lack of knowledge about Oracle,
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