04-06-2005
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, earlier tonight I was installing BETA version of Mandrake Linux 9.0 and I realised I needed to partition my drive. I tried making the partition within mandrake but ther wasnt an option within the mandrake setup. So i go into my WindowsXP and do the disk management option but there want a... (5 Replies)
Discussion started by: xcaliber
5 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone.
I am new to Linux so hope some one could help me here.
I have a 30 Gb HD and windows Xp is my O/S, HD is not partitioned,but I want to Partitioned it, so I could Install Knoppix(Linux)on one of the partitioned one, how could I do this? OR should I erase every thing and then... (1 Reply)
Discussion started by: amir
1 Replies
3. UNIX for Dummies Questions & Answers
:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows......
dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/????????
Where I have the question marks is the problem.
How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies
4. Filesystems, Disks and Memory
Hi
I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies
5. Solaris
I'm looking for a utility that will wipe data clean from a Solaris hard drive and make the data unreadable and unrecoverable. Any suggestions? Does SUN have something? (3 Replies)
Discussion started by: dangral
3 Replies
6. Solaris
Hi
When I installed opensolaris, I installed it on a 20GB partition. How do I make use of the other 300GB I have spare?
format shows:-
-bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
... (12 Replies)
Discussion started by: hellotommy
12 Replies
7. SCO
Hello guys,
I have got from a friend a hard disk which was used in the SCO OpenServer. He needs some data from it. I have no clue how to copy its content with Linux or Windows-I have tried few Linux distros but the result is always the same-the file system is not recognized so can't be mounted.... (4 Replies)
Discussion started by: kataro
4 Replies
8. Filesystems, Disks and Memory
Hi guys, I have been looking around and searching for the past hour and did not see anything. but please forgive me if I missed something.
I had a sparc 10 ultra cpu die on me, I got a replacement server from a very generous guy here, now I am getting around to remounting my old hard drive with... (0 Replies)
Discussion started by: DrDarkMatter
0 Replies
9. UNIX for Advanced & Expert Users
I have connected an external hard drive. I can't find it.
Both ls /media, fdisk -l and ls /dev show nothing.
TIA (3 Replies)
Discussion started by: Meow613
3 Replies
LEARN ABOUT PHP
db2_conn_error
DB2_CONN_ERROR(3) 1 DB2_CONN_ERROR(3)
db2_conn_error - Returns a string containing the SQLSTATE returned by the last connection attempt
SYNOPSIS
string db2_conn_error ([resource $connection])
DESCRIPTION
db2_conn_error(3) returns an SQLSTATE value representing the reason the last attempt to connect to a database failed. As db2_connect(3)
returns FALSE in the event of a failed connection attempt, you do not pass any parameters to db2_conn_error(3) to retrieve the SQLSTATE
value.
If, however, the connection was successful but becomes invalid over time, you can pass the $connection parameter to retrieve the SQLSTATE
value for a specific connection.
To learn what the SQLSTATE value means, you can issue the following command at a DB2 Command Line Processor prompt: db2 '? $sqlstate-
value'. You can also call db2_conn_errormsg(3) to retrieve an explicit error message and the associated SQLCODE value.
PARAMETERS
o $connection
- A connection resource associated with a connection that initially succeeded, but which over time became invalid.
RETURN VALUES
Returns the SQLSTATE value resulting from a failed connection attempt. Returns an empty string if there is no error associated with the
last connection attempt.
EXAMPLES
Example #1
Retrieving an SQLSTATE value for a failed connection attempt
The following example demonstrates how to return an SQLSTATE value after deliberately passing invalid parameters to db2_connect(3).
<?php
$conn = db2_connect('badname', 'baduser', 'badpassword');
if (!$conn) {
print "SQLSTATE value: " . db2_conn_error();
}
?>
The above example will output:
SQLSTATE value: 08001
SEE ALSO
db2_conn_errormsg(3), db2_connect(3), db2_stmt_error(3), db2_stmt_errormsg(3).
PHP Documentation Group DB2_CONN_ERROR(3)