Skip to main content

Posts

Showing posts from September, 2016

ora-65035 while create pluggable database from another one

or : ORA-21000: error number argument to raise_application_error of -65035 is out of range Cause: this error caused because of an unrecoverable transaction in the source DB. Solution: 1. either stop and start your pluggable source DB 2. identify the open transaction and kill it if you can. use this query to do so: select * from v$transaction t,v$session  s where t.ses_addr = s.saddr;

format output text php using shell_exec function

Hi there if you face this nagging thing that the output of shell_exec command is appering in one long line you must keep reading this super easy solution you will thank me after that let say the output is saved in $output variable <php     $output = shell_exec($cmd);     echo $output;  # will pring a long line with the output    # in order to fix the output to get line breaks  use this code   foreach(preg_split("/((\r?\n)|(\r\n?))/", $output_including_status) as $line){   {          echo "<br/>";          echo $line;    } ?> have fun. support me.