Daily Technology

How to solve daily problem in technology

Problem with bash-3.00$ rm -rf * /bin/rm: Argument list too long.

without comments

I’m having this kind of error in my unix server,

bash-3.00$ rm -rf * /bin/rm: Argument list too long.

I juts need to remove and clean all the log file in my Log folder, but it seems that the file is too many to be deleted using rm -rf command.

So, this is the solution for my problem,

find . -name ‘*.log’ | xargs rm

By using Xargs command, combined with find command to delete the log file (file with file type .log).

find is command to view all file being search.

. after find is to state that serach in this current folder.

-name is parameter to search by file name.

‘*.log’ argument for only search for file with suffix .log.

| xargs is Linux command that makes passing a number of arguments to a command easier.

rm is simple remove command.

Written by admin

Posted in Unix

Tagged with , , ,

How to Solve OraOLEDB error ‘80020009′ ?

without comments

Last week I had problem with ASP program in my office, this program were developed by my friend and already running for years. Until last week that simple ASP page simple down. The error code seems to have problem with the oracle connection or data. This is the error code:

OraOLEDB error ‘80020009′ Accessor is not a parameter accessor

After browsing for the solution in the internet, some of them is suggest that it is related to the Oracle 9i and Oracle 10g compatibility, while others suggest to restart the IIS server.

After try for half of the day, then I try the simple solution to change the query in ASP by change the data type variable in select with to_char() function, here’s the sample:

before

select * from customer_master

after

select name, to_char(date_of_birth), age from customer_master

Voila, and the program is running again without any restart or installation needed.

Written by admin