Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all 13329 articles
Browse latest View live

Oracle on Linux (Ubuntu), SQLPlus won't work.

$
0
0
Hello there,

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"
2.6.32-28-generic

I installed Oracle 11gR2 (32bit) on Linux Ubuntu 10.04 (without X-Serv), which worked fine.
But when I try to start SQLPlus, I receive the following error message:

sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory

I have set the LD_LIBRARY_PATH again manually, but didn't fix the error:
oracle@ubuntu:~$ echo $LD_LIBRARY_PATH
/opt/oracle/product/ora11gR2/lib


Can anybody help?

Thanks

Marc




oracle@ubuntu:~$ env | sort
DISPLAY=localhost:10.0
EDITOR=nano -nw
HOME=/home/oracle
LANG=en_US.UTF-8
LC_MESSAGES=C
LD_LIBRARY_PATH=/opt/oracle/product/ora11gR2/lib
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOGNAME=oracle
LS_COLORS=rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33 :so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;3 1;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42: st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01 ;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01; 31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2 =01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01 ;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;3 1:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:* .jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*. pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xb m=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png =01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx= 01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=0 1;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01; 35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35 :*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:* .flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.g l=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=0 1;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01; 35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36 :*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36: *.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.o ga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/oracle
ORACLE_BASE=/opt/oracle/product
ORACLE_HOME=/opt/oracle/product/ora11gR2
ORACLE_SID=ORADB1
ORACLE_TERM=xterm
PATH=/opt/oracle/product/ora11gR2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/oracle
SHELL=/bin/bash
SHLVL=1
SSH_CLIENT=192.168.2.20 53964 22
SSH_CONNECTION=192.168.2.20 53964 192.168.2.21 22
SSH_TTY=/dev/pts/0
TERM=xterm
TNS_ADMIN=/opt/oracle/product/ora11gR2/network/admin
USER=oracle
_=/usr/bin/env
VISUAL=nano -nw




oracle@ubuntu:~$ find / -name libclntsh.so\* -ls 2>/dev/null
664323 0 -rw-r--r-- 1 oracle oinstall 0 Nov 6 12:35 /opt/oracle/product/ora11gR2/lib/libclntsh.so
790960 39152 -rwxrwx--- 1 oracle oinstall 40088477 Nov 6 12:32 /opt/oracle/product/ora11gR2/inventory/backup/2014-11-06_12-32-02PM/Scripts/ext/lib/libclntsh.so.11.1
790677 39152 -rwxrwx--- 1 oracle oinstall 40088477 Nov 6 12:32 /opt/oracle/product/ora11gR2/inventory/Scripts/ext/lib/libclntsh.so.11.1
524991 39152 -rwxr-xr-x 1 oracle root 40088477 Nov 6 12:15 /home/oracle/database/stage/ext/lib/libclntsh.so.11.1

Downgrade from Workgroup to Express edition

$
0
0
Hi,

i have an existing database V9.5 with a Workgroup license
I need to downgradee that to Express edition.

What do i have to do?

How to get rid of *.IN1 files in db2

$
0
0
Hi,
I am using the db2 database of 9.7 Version,fixpack 3,edition is ESE and Operating system is Linux( 5.4 Tikanga).

The table spaces in this database are SMS. The disk utilization of the server related to this table apace is about to full.

I found that one file(SQL00004.IN1) is the one which is having high utilization. I came to know that this is a temporary file created during an index reorg operation and this file is updating continuously.

Can any one help me how to get rid of this file or how to reduce the utilization.

Thanks in advance..

The expression you entered has a function containing the wrong number of arguments.

$
0
0
Hello~
Our agency still uses Access 2000 for our database. And I am trying to create a field with the following information but it keeps saying the expression you entered has a function containing the wrong number of arguments. Can anyone help me figure out where it is wrong?

HUD: IIf(Int([SAIntakeDate]-[DOB])/365)<18 and
IIf([TraumaCodes] Like “D”
Or [TraumaCodes] Like “E”
Or [TraumaCodes] Like “F”
Or [TraumaCodes] Like “P”
Or [TraumaCodes] Like “S”
Or [TraumaCodes] Like “W”
Or [TraumaCodes] Like “X”),
“C”,Null) +
IIf(Int([SAIntakeDate]-[DOB])/365)>=62 ,“E”,Null) +
IIf([Disabilities] is not “U” and [Disabilities] is not “N” and [Disabilities] is not Null, “D”,Null) +
IIf([Homeless] Like “Y”,”H”,Null) +
IIf([maritalcode] Like "*married*",IIf([TraumaCodes] Like "*d*","B",Null)) +
IIf([Impeded] Like "Yes","I",Null)

different fields to appear when a choice is made

$
0
0
First, I'm sorry if this is the wrong forum or that I can't choose a good title!

I have a php/mysql system recording data about firms. At one stage the country the firm is based in is asked via a drop down list. If they choose the UK from the list then I want a new question to appear on the form asking for their VAT number.

Can anyone give me some pointers how I go about this?

Many thanks

Assistance with backups

$
0
0
Hello All

I run a small database (currently 12 gig). I am doing regular backups with pg_dump 4x during work hours and 1 at midnight.

I would like to do a PITR setup so if I lose the database again, minimal info would be lost. I am not sure if this is the right way to go

I would need to put the backup server on a separate public IP, and our internet provider feels this will use a lot of bandwidth for a constant stream. Also, the company is a small 501-3c non-profit with limited budget, so I cannot buy what I think I actually need.

So here is my question - How can I set up a disaster plan for 1) failed database to minimize lost data and 2) create a second database server to use when hurricanes cut power from the primary server? Oh, I have bandaids and duct tape to do this with.

Thanks so much for all suggestions

Problem Solving: Combo Box / Query has stopped working

$
0
0
I have a split form for a query. The split form has multiple combo boxes. The query criteria reads:

Like "*" & [Forms]![Main_F2]![cboRMStatus] & "*"

The combo boxes have an "After Update" event to requery the query.

One combo box has stopped working. After updating it gives me a zero result. I cannot seem to figure out what happened!

I did delete a record in the underlining table and updated some info. Any suggestions?

Thanks!

Help finishing a query

$
0
0
I have one view being pulled into an Access Database (2013). This view is linked to a SSMS database.

I set a parameter on it which works fine.

I also have some VBA to refresh the links, they work fine.

I am able to run the query from VBA via button

I am able to save the file using VBA from Access to Excel.

My questions is, are there anyways to loop through a access query and save your findings?

I know you can do it in Excel, but Access is a lot more complex.

Here is what I have, it's not much but it save the query.

HTML Code:

Dim strfile As String

strfile = "C:\Users\user\Desktop\tableexport.xls"

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryREPORTDate", strfile

MsgBox "File has been exported to " & strfile

End Sub


My end game is to loop through the query building a collection or some contain that can be accessed and then output to Excel. Column 1 is the column I am trying to filter by.

Thanks for any recommendations.

uninstall expired 9.7

$
0
0
Hi all,

I am using db2 9.7 ESE on RHEL6.

The above mentioned trial version got expire after 3 months. I was having 2 databases. now i want to uninstall it and install full permanent version of db2 wse 10.2 and those 2 database in it.

Problem is i am not able to start 9.7 as it is expired.

Is there any way to remove 9.7 without uninstalling or any other means to accomplish the same?
I have db backups ready for both databases.

thanks

Hello!

$
0
0
Hi everyone,

Just dropped by here to say hi since I'm new to the community :) Hoping for good times!

HibernateException: Wrong column type:x, expected: y on Sybase

$
0
0
Hello,

I don't have much background on the technologies below so any help would be appreciated. Please feel free to ask questions if something's not clear.

I'm currently working on a migration project wherein we're updating a number of technologies including:

  • Sybase - from 12.x to 15.7
  • JConnect - from several versions to 7.0.7_SP130


Now, our apps are deployed on to JBoss 4.x and use Hibernate 3.2.4.sp1. In the old DB, we have a number of custom datatypes that look something like this (not sure if I can insert a table yet so I'll do it this way first) :

Custom datatype: TYPE1, Base datatype: image
Custom datatype: TYPE2, Base datatype: tinyint

Some columns in our DDL use the custom datatypes:

Code:

CREATE TABLE y (
  our_column_name TYPE1,
  ...
);

When the server is started up, I get the following error message:

Quote:

... javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: our_column_name, expected: image
which is not what happens in the old setup. Do take note that of all the custom datatypes we've defined, only those with image and tinyint have issues; the others are recognized and throw no error.

We've run a trace on the JConnect driver and it appears that it's retrieving the correct datatype, which is why I'm now focusing on the HibernateException. I've seen a couple of posts similar to this one (occurring on different DBs), but basically, they gave similar workarounds:

  1. One site like this one, it's suggested that we alter the DB table's column to use the base datatype instead of the custom datatype. We've done this by changing our_column_name's datatype to image. Once this was done and the server was restarted, the error goes away. However, it does not explain why or what caused the issue.
  2. This suggested the use of JPA annotations' @Column(columnDefinition='image'). We've tried this as well, but it doesn't seem to have any effect on the startup (i.e. error still occurred).
  3. In the same link as #2, it was suggested that the SQL Dialect be extended. However, I don't think this is feasible - only 2 custom datatypes (image and tinyint) seem to be causing the problems on our end so this may be overkill.
  4. This site suggests the removal of hibernate.hbm2ddl.auto=validate from persistence.xml. Have not tried this as we need the validation to be in place.
  5. Use the datatype "LOB" instead


I've also tried checking out Hibernate's code since the exception was thrown here -
Code:

org.hibernate.mapping.Table.validateColumns(Table.java:261)
, which pretty much points to this line:

Code:

boolean typesMatch = (col.getSqlType(dialect, mapping).startsWith(columnInfo.getTypeName().toLowerCase())) || (columnInfo.getTypeCode() == col.getSqlTypeCode(mapping));
However, Hibernate's API documentation is a little wanting in details so I'm having some difficulty in tracing this at the moment...

Any ideas on what's causing the exception? If it's working in the old version, was wondering on what changes in Hibernate (or Sybase for that matter) can cause this?

This document suggests that Hibernate is tested against Sybase 15.7 so I'm at a loss where to continue looking. And would #1 above be the best workaround? If so, any ideas why base types should be used instead of custom datatypes (which would, in essence, render custom datatypes useless...)

Thanks again in advance!

DB2 insert performance: Partitioned vs un-partitioned table

$
0
0
Hi,

I've created two tables, one partitioned another non partitioned.
When I'm inserting data in both the tables (500000 rows each), the time taken by insert is almost same.
Is this correct, dosen't insert/update in a partitioned table takes more time?

form control of multiple elements

$
0
0
I have a survey type of database. The first table is the basic inventory elements, each one having an unique number ID

The subsequent portions are just groups of questions that need to be answered. Groups are grouped in relevancy to certain aspects.

Some groups consist of questions with same number of responses and type. In this case, with the repetition of a similar pattern, I draw relationship from this group to the inventory table by a 1-to-n relationship. So each unique ID from the inventory table, TblInv will give rise to multiple elements of a certain question group. Let's call this tblQuestiongroupG. If TblInv has 1000 elements, tblQuestiongroupG may have 15*1000 elements altogether (given there are 15 different questions in that group). Each question is distinct and marked with a type code.

Here's the scenario that I am seeing - when I come to construct a form for the respondent, I separate the entry document into a main portion and tabbed portions which correspond to each set of questions group. I will also need to construct a subform that represent every question group. I link the master ID control of the main form to the child field of each subform to make sure the appropriate subset of questions (records) are picked according to a particular inventory ID number.

I have designed a subform representing these 15 questions but I am arriving at a point that I need some guidance.

The subform consists of bound controls but because it is single view it will only look at one record at a time. Each question is a basic record in tblQuestiongroupG. I would like to populate the subform with labels representing every question and place controls for every single question. Since every question is a single record I seem to have problem getting all of them shown to these responses controls at the same time. It seems that I need a continuous view.

However, I have a problem with continuous view as well. Below is a design problem that I am dealing with:
each question has a question code which is a tag in my database to tell the group apart. Users do not really need to see and fill in it - it should be filled in automatically as users pick their responses. I am wondering if the continous view can be customized to show only certain fields of the records? On the other hand, when the user is answering question X I need to find a way to know that is the selected question and code the question type in the record as well. How do I perform this action? Each question should have a label to indicate what is being asked. When a question has never been answered, it will not have a record in the first place, it will appear that adding of new record should be internally taken care of whenever users decide to answer it. However, before a question is answered there is no record to speak of so in the display there's nothing there at all. The record needs to be generated! I am wondering if I should in fact populate my database table with the necessary records in advance, each with a code type filled in? AddNew and Delete record operation should be absent.


I also have thought along the line of designing the subform with a single view but making all the response controls unbounded. Once I get to a particular inventory the recordset will be filtered down by the master/child link relationship that will give me a recordset size of at most 15 records. With this recordset I will clone 15 new recordsets and assign to each question. Each new recordset will have operation to search the appropriate record (by question code) to look for the right records to fill in answers supplied in the control. Since the controls are unbounded I have to take care of all the display and update events by codes. Would this approach be more messy and less prefereable that using a continuous view? I do not think the coding is particular complicated but would like to hear opinions from others first.

Fixpack Installtion without downtime

$
0
0
Hi All,
I am using V9.5 Fp8 (Aix 6.1).db is configured with HADR with TSA.

I want best plan to implement latest fixpack without downtime.
I am planning for below process
In standby
1)Disabling TSA
2)deactivating db
3)stopping instance
4)Applying fixpack
5)Starting instance & takeover hadr

same process as above in primary

Finally enabling TSA.

IS this process is possible , i am missing anything ???

Retrive data from a sybase db and put into something else

$
0
0
Hi all,

I you have read this question already, sorry but I moved it from "introduce yourself",
I need advice how to do this (if possible at all). I want to use something like MariaDB, MySQL or postgresql for doing it.

My issue is related to a Identity management system that use a couple of Sybase databases to retrieve information from to setup accounts into a LDAP catalog, all well and fine. But now there is time to upgrade the IDM system and the the connectors to the Sybase db wont work in the new system. To get the new piece of software to work the owner of the Sybase db has to create new views, witch for some reason is both expensive and time consuming. So the owner of the IDM project was pondering if there was a way to retrieve the information from sybase and to put it in a new database like MariaDB, Mysql or Postgresql?
So it's not a question about migrating from Sybase to something else, we want to get data from sybase and to put it into a other database and by doing so get the information we are interested in.
Can you do that directly from a database or do you have to use a client that run the query, format the data and store it into a new database?
Any suggestions or pointers to better place to ask the question?

/Lennart

moving to MySQL 6.0 is a good move?

$
0
0
what is most important issues and cautious we have to do before upgrade to MySQL 6.0?

How do you do the upgrade? setting up a new slave and do yum upgrade? what is the best way to upgrade with minimal downtime?

Permissions issue on table in tempdb

$
0
0
Bonjour,
I needed a backup copy of a table for an application modification. I have created the table as a select * into tempdb..mybackuptable from mydb..originaltable.

The problem is, no one except me (SA) can access the table in tempdb.

SELECT permission denied on object mybackuptable, database tempdb, owner dbo

I tried to grant permission but there are no users un tempdb so you can't. I tried to change to owner of the table guest and returned : "Cannot transfert object ownership to user 'guest'".

Besides droping the table and explicitely create is as tempdb.guest.mybackuptable, what could I do?

what is Algorithm Design question

$
0
0
Hello everybody,
I have a test next week for the position of IT Analyst. I was told it will be some SQL questions and 1 Algorithm Design question.
I am wordering what is Algorithm Design question? the position doesn't need C/Java skills.
anybody knows? if so, give me an example?

Thanks

Unique index creation failure is not clearing disk space

$
0
0
Hi,

While trying to create unique index on a table with 80 Million and 60 Million records in it. The job failed twice with error message of disk full. after the first failure I tried truncating both the tables and checked the disk size it had the same size of 100% full. Then tried locating files greater than 1GB which yielded /opt/datafiles/db2inst1/NODE0000/DBNAME/T0000003/C0000000.LRG occupying the 90% of the disk space. Then I truncated all other tables still the size was being shown as same.

what am I missing here?

Thanks for your help!!

Load DB2 file

$
0
0
Hi,

How to load DB2 files into Netezza?

Thanks
Viewing all 13329 articles
Browse latest View live