OpenVZ Forum


Home » General » Support » Oracle errors
Oracle errors [message #3031] Tue, 09 May 2006 12:01 Go to next message
ppcharli is currently offline  ppcharli
Messages: 6
Registered: May 2006
Junior Member
I am testing Oracle in OpenVZ with CentOS 4.3
In the dbconsole I get the errors:
Error: /proc/swaps: No such file or directory
Error: /proc/partitions: No such file or directory
It is possible to simulate these special files?

Thanks
Jose
Re: Oracle errors [message #3035 is a reply to message #3031] Tue, 09 May 2006 15:02 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

sure, it is possible to simulate them, but I will better ask our guys how to correctly configure Oracle as they were successfully running it inside VPS. I will give you to know tomorrow.



http://static.openvz.org/userbars/openvz-developer.png
Re: Oracle errors [message #3073 is a reply to message #3031] Thu, 11 May 2006 08:26 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
There's no way to add these file into running kernel - we need to make a separate patch and rebuold the kernel. As far as dbcosole is concerned - we didn't run it in VPSs yet.

If you know how tune oracle not to use these file, please, let us know. We'll try to find this out ourselves also. Otherwise we'll add these files to VPS proc with some reasonable content.


http://static.openvz.org/userbars/openvz-developer.png
Re: Oracle errors [message #3113 is a reply to message #3073] Fri, 12 May 2006 15:23 Go to previous messageGo to next message
ppcharli is currently offline  ppcharli
Messages: 6
Registered: May 2006
Junior Member
I have been looking for but I have not found any form to tune Oracle to not use these files.

Thanks
Re: Oracle errors [message #3123 is a reply to message #3113] Sat, 13 May 2006 07:49 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Can you try the following kernel patch please?

--- ./drivers/block/genhd.c.ora	2006-01-11 22:13:22.000000000 +0300
+++ ./drivers/block/genhd.c	2006-05-13 11:34:46.000000000 +0400
@@ -262,6 +262,8 @@
 	if (&sgp->kobj.entry == block_subsys.kset.list.next)
 		seq_puts(part, "major minor  #blocks  name\n\n");
 
+	if (!ve_is_super(get_exec_env()))
+		return 0;
 	/* Don't show non-partitionable removeable devices or empty devices */
 	if (!get_capacity(sgp) ||
 			(sgp->minors == 1 && (sgp->flags & GENHD_FL_REMOVABLE)))
--- ./kernel/veowner.c.ora	2006-01-11 22:13:23.000000000 +0300
+++ ./kernel/veowner.c	2006-05-13 11:36:31.000000000 +0400
@@ -98,6 +98,7 @@
 		"user_beancounters",
 		"cmdline",
 		"vmstat",
+		"partitions",
 		NULL,
 	};
 	char **p;
--- ./mm/swapfile.c.ora	2006-01-11 22:13:24.000000000 +0300
+++ ./mm/swapfile.c	2006-05-13 11:40:53.000000000 +0400
@@ -1344,6 +1344,9 @@
 	if (v == swap_info)
 		seq_puts(swap, "Filename\t\t\t\tType\t\tSize\tUsed\tPriority\n");
 
+	if (!ve_is_super(get_exec_env()))
+		return 0;
+
 	file = ptr->swap_file;
 	len = seq_path(swap, file->f_vfsmnt, file->f_dentry, " \t\n\\");
 	seq_printf(swap, "%*s%s\t%d\t%ld\t%d\n",
@@ -1379,7 +1382,7 @@
 {
 	struct proc_dir_entry *entry;
 
-	entry = create_proc_entry("swaps", 0, NULL);
+	entry = create_proc_glob_entry("swaps", 0, NULL);
 	if (entry)
 		entry->proc_fops = &proc_swaps_operations;
 	return 0;


http://static.openvz.org/userbars/openvz-developer.png
Re: Oracle errors [message #3132 is a reply to message #3123] Sun, 14 May 2006 09:34 Go to previous messageGo to next message
ppcharli is currently offline  ppcharli
Messages: 6
Registered: May 2006
Junior Member
I am using kernel 2.6.16-026test012.1.
Is this patch for this kernel?

Thanks
Re: Oracle errors [message #3147 is a reply to message #3031] Mon, 15 May 2006 08:05 Go to previous message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
AFAIR, these errors are not fatal. Oracle still runs without them.

http://static.openvz.org/openvz_userbar_en.gif

[Updated on: Mon, 15 May 2006 08:06]

Report message to a moderator

Previous Topic: HN copy files to VPS
Next Topic: bridge support
Goto Forum:
  


Current Time: Sat May 11 08:50:53 GMT 2024

Total time taken to generate the page: 0.01557 seconds