The table size has two meanings. One is the number of physical spaces allocated to a table, regardless of whether the space is used or not. You can query the number of bytes as follows:Select segment_name, bytesFrom user_segmentsWhere segment_type =
Troubleshooting of common Oracle Problems
---------------------------(No Logon)---------------------------ORA-12541: TNS: No listenerProgram
---------------------------OK---------------------------
1. CMD-> Run Command Line-> services.
In the Oracle database, when the data queried is large, it needs to be formatted. Otherwise, "####" is displayed when the result is converted to a string.
Select
Rtrim(To_char (
5279.59
*
100
*
30,
'
Fm9999999990.9999
'),
'
.
')
This article describes how to handle system and SYS password in Oracle. One is OS verification and the other is password file verification.
OracleTwo authentication methods are provided. One is OS authentication and the other is password file
// Create global temporary table temp_20061030 (ID int, name varchar2 (256) on commit Delete rows;
Export ledboperation DBO = NULL; // export ledboperation is a custom class encapsulated for Oracle operations. You can use the operation classes and
Background: Recently, the database server of the company was managed in a unified manner, collect databases distributed across servers to one machine (252) . ip 98 . One of the databases is relatively small, with exp export with imP
Declare
Cursor
Cur_m_shohinhotel
Is
Select
H. seq, H. usedate,To_char (to_date (
'
2006/12/12
'
)
+
H. usedate
-
1
,
'
Yyyymmdd
'
)
As
Useday,H. cyclcd, H. mealtypecd, H. roomcategorycd, H.
Self join is a commonly used connection method in SQL statements. Using Self join, you can treat one image of your table as another table, so that you can get some special data.
When should we use a self-connection? Let's take a look at the
Iii. SQL Optimization
Database optimization is mainly performed by DBA, and the optimization is divided into many steps. Based on experience, the first thing to adjust is
Program A bad SQL statement written by a member can cause the entire Oracle
Context: saasreportprocontext CTX = factory. saasreportprocontextfactory. getsaasreportprocontext ();
There are three parameters: String reportname, string module, string type
In LINQ to SQL
VaR query = from o in CTX. reportorWhereO.
Blob refers to the writing of a binary large object, that is, an English Binary large object;Clob refers to a large character object, that is, written by the English character large object.Therefore, these two types are designed to store a large
Note: When I changed the bug, I accidentally deleted a piece of data from the generated database, so I was shocked and found it again.
You can use the following methods to delete a file:
Use the followingCommand to view the current database
You need to back up the Oracle database automatically on a regular basis and want to use the simplest tools and methods.
Timing: Use the scheduled tasks that come with windows to complete.
Backup: Use the Oracle export tool export. The command
Set database startup instance
Use operating system authentication to log on
Rebuilding Scott user environment
Switch to database DBA
Specify a separate tablespace for Scott.
C: \ Documents ents andSettings \ Administrator>Set oracle_sid =
Method 1
Step 1: log on to SQL/plus to execute the command (no sequence is available)
Set Time on; (Note: Enable time display)
Set autotrace on; (Description: Enable Automatic Analysis Statistics and display the running results of SQL statements)
In the Oracle PL-SQL, left and right connections are implemented as follows
View the following statements:
This SQL statement uses the right connection, that is, the other side of the "(+)" is the connection direction. All records on the right
When Oracle is uninstalled, it cannot be deleted. I want to reinstall the system. In my work, I have summarized the following methods and hope to help you.Note: the path of the oracle source program must be an English path; otherwise, an error
How to remotely determine
Oracle
DatabaseOf
InstallPlatform
Http://hi.baidu.com/dingqiang123/blog/item/1bdeccee9d9799f7b3fb9535.html
Select * from v $ version;
View table space usage
Select sum (bytes)/(1024*1024) as free_space, tablespace_nameFrom
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