檔案為『數據庫』類別

容易複製品、拷貝或者備份表在Oracle、PostgreSQL、DB2和SQLite與創造表作為SQL

星期天, 2007年3月18日

在Oracle、PostgreSQL、DB2和SQLite數據庫系統,有叫的一個好的命令特點 創造表 哪些允許容易複製一張桌以數據從另或幾張其他桌。 SQL命令在原始表可能也用於`拷貝和確切地黏貼』桌或備份桌數據在執行數據操作詢問之前,萬一劇本有錯誤,并且備份日期可以用於恢復對原始的狀態。 創造表 意志創造從數據集或結果集合內容修造的一張新的桌a檢索的 精選 SQL詢問從在數據庫之內已經存在的桌。

持續讀容易地複製品,拷貝或備份表在Oracle、PostgreSQL、DB2和SQLite與創造表作為SQL」」」


改變或設置長的詢問時間值為日誌慢詢問的MySQL

星期二, 2007年1月23日

如果您 使能MySQL數據庫服務器慢詢問日誌 您注意那個從慢詢問記錄文件包含比10秒query_time採取更多仅的SQL聲明和詢問執行或跑。 這是缺省值或詢問時間門限為log_slow_queries起作用,是10秒。 10秒太長的為了SQL詢問能完成,因此價值也許太高以至於不能奪取所有意味深長的數據。 您能修改或改變緩慢的詢問時候降低秒鐘的價值或數字。

持續讀變動或設置長的詢問時間值為日誌慢詢問」」」的MySQL

使能採伐緩慢的詢問(減慢詢問日誌)在MySQL數據庫

星期一, 2007年1月22日

其中一個快速的主要要求 網絡服務器 是有被優選的高效率和有效的SQL聲明或詢問。 採取太長或長的時刻執行將用盡很多系統資源的任何非優選的SQL (構造查詢語言)命令或聲明,導致 MySQL database to run slower, and then more and more queries backlogs queuing up, and when connection limit is reached, visitors are been denied or refused connection. In worst case scenario, your web server will go down as well, or continuously underperform. The case is especially true when you are using MyISAM table type which uses table-level locking instead of row-level locking in a high traffic website.

Continue reading Enable Logging of Slow Queries (Slow Query Log) in MySQL Database » » »

Delete, Remove or Drop Oracle Stored Packages with Drop Package

Thursday, January 11th, 2007

Oracle Package is an object in Oracle database that allows developers and designers to group procedures and functions into common groups, typically based upon their functionality. Package can be treated as the container for functions and procedures. A package consists of two sections which is the package specification (export script file will be in .pks extension) which must be declared first and contains a definition of any objects that can be referenced from outside of the package. The other section is a package body (export SQL script file will be in .pkb extension) that contains the implementation of the objects or stored procedures within the package. With package, a procedure can be hidden inside the package by not declaring them in the package specification.

Continue reading Delete, Remove or Drop Oracle Stored Packages with Drop Package » » »


ORA-00942 Table or View Does Not Exist Oracle Error

Thursday, January 11th, 2007

Sometime when you compile an object or package or view in Oracle, or execute some PL/SQL statements on Oracle table, or when running an Oracle program or application, the following error my occurs:

ORA-00942: table or view does not exist

Continue reading ORA-00942 Table or View Does Not Exist Oracle Error » » »

Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error

Thursday, December 7th, 2006

When inserting records into Oracle database by SQL statements, creating new tables, importing backup dump into Oracle database or when manipulating tables or data in the Oracle database, the following error may occurs:

ORA-01658: unable to create INITIAL extent for segment in tablespace tablespace_name

Continue reading Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error » » »

Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error

Wednesday, November 8th, 2006

Oracle table partitioning is important for optimum performance of the database, as it allows Oracle to process the specific and independat partition or part that is smaller in size, instead of entire full table or database. However, when you want to create a new partition to a table by adding or splitting partition, administrator may encounter errors such as ORA-14074. Other than that, Oracle error ORA-14080 can also happen, if you’re not careful enough with the following symptom:

ORA-14080: partition cannot be split along the specified high bound

Continue reading Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error » » »

Oracle ORA-14074 Create or Add New Partition Fails Error

Wednesday, November 8th, 2006

Oracle database partition is a division or decomposition of a logical database and/or its constituting elements (indexes or transaction logs) into distinct, smaller, more manageable and independent parts or pieces. Database partitioning provides solution to problems faced by supporting very large tables and indexes, especially in data warehouse applications, which store and analyze large amounts of historical data. With partitioning or table splitting, SQL statements can access and manipulate the partitions rather than entire tables or indexes, and thus increase manageability, performance or availability of the Oracle database.

Continue reading Oracle ORA-14074 Create or Add New Partition Fails Error » » »