Step 1: Open pd15 and find [database ],:
Step 2: Click Create to create a new ODBC connection.
Step 3: select the system data source and select Oracle
Step 4: note that the server must write the service name configured on the Oracle
Select * From all_tab_comments; -- query tables and views of all users.
Select * From user_tab_comments; -- Query all tables and views of the current user.
Select * From all_col_comments; -- query the column names and comments of all user tables.
Oracle date and time processing function Summary In to_date format
Day:
Dd number 12
Dy abbreviated Fri
Day spelled out Friday
Ddspth spelled out, ordinal twelfth
Month:
MM number 03
Mon abbreviated MAR
Month spelled out March
Year:
YY two digits 98
After the connection is successful, you can query it. It looks like WindowsProgramIt looks like a doscommand line tool. after entering the SQL statement, select "file/Run" to execute the SQL statement.
Configuration file (this file should be
To uninstall ORACLE:
Software environment:
1. Windows XP + Oracle 10g
2. Oracle installation path: D: \ oracle
1. If the database is configured with Automatic Storage Management (ASM), you should first Delete the clustering Synchronization
Simple ORACLE trigger example
--- Trigger for follow-up after preoperative visitCreate or replace trigger t_update_triggerAfter update or insert or deleteOn med_smartreport_templateFor each rowDeclareStatecount number;BeginSelect count (1) into
IIS cannot access Oracle
But vs2008 can access
I 've been depressed for a long time and installed ORACLE Server again
The Oracle client installed on the internet is accessible for the moment, but the Oracle listener cannot be started.
Depressing
Oracle exp imp import skipping table PLSQL import table successfully terminated Data Import
During the import process, a prompt is displayed for all tables to be imported,
Skipping table
Finally, the system prompts that the import is successfully
Discussion on Chinese Character Display garbled characters in Oracle databases
1 Introduction Oracle database is an industry-leading database product and has been widely used in large and medium-sized enterprises in China in recent years.
Solution to importing a later version
1. Connect the oracle9 client to the oracle10 Database
2. Use the exp of oracle9 to export Oracle Data
3. Import the data imp exported from oracle9 to the Oracle database to import the data of the later
17. Use the table alias (alias)
18. Replace in with exists
19. replace not in with not exists
20. Replace exists with table join
21. Replace distinct with exists
22. Identify 'inefficient execution' SQL statements
23. Use the tkprof tool
I still have the habit of using SQL Server. in Oracle, the update from structure is often used. In fact, there is no from statement in Oracle.
Code
Code highlighting produced by Actipro CodeHighlighter
Rollback segment management has always been a problem in Oracle Database Management. This article introduces the concept, usage, planning, and problem solving of Oracle rollback segments through examples. Rollback segment Overview Rollback segments
The data dictionary dict always belongs to the Oracle user SYS.
1. User:
Select username from dba_users;
Change Password
Alter user spgroup identified by spgtest;
2. tablespace:
Select * From dba_data_files;
Select * From dba_tablespaces; //
1. First define the standard interface IDBAccess for database operations, and define the basic functions of the interface;
2. dynamically create an interface instance (factory mode) through enumeration Parameters)
3. base class implementation
Oracle Table Partitioning
Since oracle8i, a table can be divided into several small parts, which can bring great benefits to oracle performance optimization ~For example, it can improve the query performance of tables, make it easier to manage table
8. Use the DECODE function to reduce processing time
9. Simple Integration and unrelated Database Access
10. Delete duplicate records
11. Replace DELETE with TRUNCATE
12. Try to use COMMIT as much as possible
13. Calculate the number of records
14.
I. analysis function overOracle provides analysis functions starting from 8.1.6. analysis functions are used to calculate a group-based aggregate value. What is different from aggregation functions?Multiple rows are returned for each group, while
-- Merge one row of Oracle multi-row data. SQL
-- 1.
Create type NUMBER_LIST_T as table of varchar2 (50 );
-- 2.
Create or replace function CONCAT_LIST (
Lst IN number_list_t, separator varchar2
)
RETURN VARCHAR2 IS
Ret varchar2 (2000 );
BEGIN
FOR j
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