Archive for November, 2008

403 Forbidden Wamp You don’t have permission to access /map/< on this server.

Friday, November 21st, 2008

I decided to learn php. I went to library and I borrowed a book “PHP 5 Unleashed”. After that I installed wamp (apache, mysql and php) and I tried to run an example from the book.

Everything works fine when I run an example on the javanus.com server but I got the following error on localhost: You don’t have permission to access /php5_unleashed_code/5/< on this server.

I found out that %3C is presented in the URL instead of listing5_5.php  (http://localhost/php5_unleashed_code/5/%3C?submit=1&username=user_input_name).

The reason is in the next statement: <FORM ACTION=”<?=$_SERVER['PHP_SELF']?>” METHOD=GET>

It works if I modified the statement above with <FORM ACTION=”/php5_unleashed_code/5/listing5_5.php” METHOD=GET>.

I tried to echo $_SERVER['PHP_SELF'] and I got the following value: /php5_unleashed_code/5/listing5_5.php

I modified the code as:

<FORM ACTION=”<?php echo $_SERVER['PHP_SELF']?>” METHOD=GET>

…mission completed. Another problem solved.

how to remove oracle service that no longer exist?

Thursday, November 20th, 2008

I have successfully removed my oracle installation. I have deleted oracle files first and removed oracle keys from registry. My problem was how to remove also oracle services? I found out a very useful way. 

You can use sc for this action. SC is a command-line tool which is used with Windows and offers the functionality to maintain and administer Windows NT services.

sc delete OracleServiceORCL

[SC] DeleteService SUCCESS

Refresh the services and check out the list of services again. Service has gone!! 

Sc could be used also to terminate or to restart the service on another server. Again: do not hesitate to test it.

failed to parse arguments “unknown option ‘-skip_subset’”

Saturday, November 15th, 2008

I tried to apply Oracle Critical Patch Update for January 2008 – patch no. 6646853 but I got the following error:

Syntax Error… Unrecognized Command or Option: failed to parse arguments “unknown option ‘-skip_subset’”
Please use the option ‘opatch  -help’ to get correct syntax

I found out that my opatch version is a little bit old. I have to installed new opatch version from patch number p4898608.

I started the patch installation:

/oracle/home/oracle/p4898608/OPatch/opatch napply -skip_subset -skip_duplicate

funny, no problem…

ORA-47390: failed to audit event

Monday, November 10th, 2008

I got the following error when I have tried to select some values from the database table which is secured by a database vault.

*
ERROR at line 1:
ORA-47390: failed to audit event,

This error occurs when user does not have object privileges to this object. A different error occurs when the user has a delete privilege and does not have a select privilege:

ERROR at line 1:
ORA-01031: insufficient privileges