Unable to get more data from the socket

Because the first encounter this problem, so the following methods are derived from the Internet.

Version: oracle11g

Encounter this problem, you can view oracle log, analyze the problem.

The most common problem is the location log oracle database alert log, the log file oracle database alert_ $ ORACLE_SID.log record conversion redo logs, database startup and shutdown, changing the structure of the database, modify the back-off period, deadlocks, internal error and other information.

路径是:ORACLE_BASE/admin/ORACLE_SID/bdump/alert_ORACLE_SID.log

The new Oracle database log files in ORACLE_BASE / diag / rdbms below, such as: D: \ app \ Administrator \ diag \ rdbms \ orcl \ orcl \ trace

You can also find the location by sql statement:

Alert log XML file location: SELECT value from V $ diag_info WHERE name = 'Diag the Alert';

Alert log text file location: SELECT value from V $ diag_info WHERE name = 'Diag the Trace';

Solution 1:

alter system set "_optimizer_connect_by_cost_based" = false scope=both ;

Reference details

_optimizer_connect_by_cost_based connection based switching costs to use the default is true
scope is the scope of influence of this parameter modification SQL, a total of three values: both, memory, spfile.

  After 1.scope = memory to modify the current work, restart the database does not work
  after modifying the current ineffective 2.scope = spfile, next time you restart the database only works
  3.scope = after both change the current work, the next restart database also play a role

More undocumented hidden parameters, refer to hide parameters are not archived

Solution 2:

alter system set "_optim_peek_user_binds"=false;
_optim_peek_user_binds to be able to spy on users to bind Default is true 

turn bind mainly to improve performance, as do the hard analysis (Hard Parse) can try to avoid this unnecessary, saving time and saving a lot of CPU resources.

When a Client to submit a Sql after Oracle, Oracle will first be parsed (Parse), and then parse results are submitted to the optimizer (Optimiser) to optimize Oracle acquired think the best Query Plan,

then according to this Plan to execute the optimal Sql statement (of course, this being, if only soft parse will be less if some of the steps). 

When will be the first in the shared pool (Shared Pool) inside to find the Oracle submitted to the Sql Client has been resolved if there is good with this one before Sql Sql just received exactly the same

(note here that is identical, both character-level requirements are the same on the statement, but also requires the object involved must also be identical).

And when there is no longer the same after the parser to parse a good result before the new Sql resolve this directly with. Here it saves time and analytical resources to resolve CPU time consumption. Especially in the OLTP running a large number of short Sql, the effect will be more obvious.

Because one of the two Sql time may not have much sense, but there will be more obvious feeling when the amount of the future.

However, a disadvantage of using bind variables is given by the implementation plan is not necessarily true SQL execution plan in the application in use. Then we will be able to view events by event 10053.

Solution 3:

If the temporary table space can not automatically expand, you can create a new temporary table space to the user.

1, a new temporary table space 
2, the current user temporary table space switch to the new temporary tablespace

 

Guess you like

Origin www.cnblogs.com/xc-chejj/p/11009836.html