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

Help Issue with Selection of row data

$
0
0
I have a form with combo box to select a part number and multiple fields attached to the number selected (see attached image). I use code to fill in the remaining fields of row data selected. Code below
Quote:

Private Sub ID_Part_AfterUpdate()
Me.ID_Part = ID_Part.Column(0)
Me.Part_Desc = ID_Part.Column(2)
Me.Qty = ID_Part.Column(3)
Me.Price = ID_Part.Column(4)
Me.PurchaseDate = ID_Part.Column(5)
Me.PurchaseInv = ID_Part.Column(6)
Me.ID_Supplier = ID_Part.Column(8)
Me.ID_Purchases = ID_Part.Column(7)
End Sub
Problem occurs when the part number is duplicated but has different purchase dates and invoices attached. When you select a part number it will only bring in data from the top row even if the highlighted row is not the top row. How do I clarify the selection process?
Attached Images

If and Then

$
0
0
If the field M1TimeRemaining is blank then I get an error, is there a way using if and then functions to show "No Data" if the field is empty?

Miscellaneous1: DateAdd("yyyy",[M1TimeRemaining],[InspectionDate])

Thanks in advance.

Dave

Migrating From MySQL 5.0 -> MariaDB 10.1

$
0
0
We have a web portal running an old as dirt cold fusion web application. It's legacy software that will no longer receive any more updates however it's associated MySQL 5.0.x dedicated server died finally after 9 years of reliable service. I've deployed a new MariaDB 10.1 (latest GA available today) and exported the database from MySQL and successfully imported the .sql dump file. When I say "successful", I mean I imported the .sql file into MariaDB w/ no errors and I can 'use' the DB I imported and query it. What else should I do to see if I will have any compatibility errors w/ MariaDB or verify the import was successful?

How to stop cube from aggregating product prize?

$
0
0
I'm a total newbie to Microsoft SQL Server 2008 tasked with helping out a friend doing her homework for university. I've built a cube which has all the measures and dimensions I want, unfortunately the numbers are off: the product prize is aggregated then rather simply being fetched from the underlying oledb destination file in the data warehouse. So if product x costs 10 USD and has been purchased 3 times in a certain month by a customer, the cube shows a product prize of 30 USD. I've switched the measure's usage from SUM to no aggregations but I still don't get the simple value list without aggregation. Why is this happening?

Query to pull all fields with an expiry date

$
0
0
Hello,

I have a query with with about 40 expression generated expiry dates, how do I create a query to show all units that expire on a particular mm/yyyy format?


Dave

Rebuilding Of Index

$
0
0
I have 6 database in sql server 2008r2 which are 250gb + each databases has aproxmately 1000 tables out of which 400 tablels fragmentations is more than 60% .i have defragmented all the Index manually now the owner wants to create a mentance plan for rebuilding Indexes . since the size of databases are to large so How much time each plan will take for individual database

form/subform combo, I get the run-time error '-2147352567 (80020009)

$
0
0
When I try to edit a record a second time, directly after updating it from the form/subform combo, I get the run-time error '-2147352567 (80020009). Can any body solve the error on current data base.. I'm new to access and vb . I'm trying to make another db based on this principle.


Code:

Option Compare Database


Private Sub cmdAdd_Click()
'when we click add button there are tw option
'1. ADD
'2. Update
If Me.txtID.Tag & "" = "" Then
'this is for inserting new
' add data to tabel
CurrentDb.Execute " INSERT INTO student(StudentID,StudentName,Gender,Phone,Address)" & _
" VALUES (" & Me.txtID & ",'" & Me.txtName & "','" & Me.cboGender & "','" & Me.txtPhone & "','" & _
Me.txtAddress & "')"
Else
'otherwise tag of textid stores the id to be modified
CurrentDb.Execute "UPDATE student " & _
" SET StudentID = " & Me.txtID & _
", StudentName = '" & Me.txtName & "'" & _
", Gender = '" & Me.cboGender & "'" & _
", Phone = '" & Me.txtPhone & "'" & _
", Address = '" & Me.txtAddress & "'" & _
" WHERE StudentID = " & Me.txtID.Tag

End If

'clear form
cmdClear_Click
'refresh data in the sub form
formStudentSub.Form.Requery


End Sub


Private Sub cmdClear_Click()
Me.txtID = ""
Me.txtName = ""
Me.cboGender = ""
Me.txtPhone = ""
Me.txtAddress = ""


'focus on ID text box
Me.txtID.SetFocus
'enable edit button
Me.cmdEdit.Enabled = True
'change update button caption to add
Me.cmdAdd.Caption = "Add"
'clear ID tag for reset new
Me.txtID.Tag = ""

End Sub

Private Sub cmdClose_Click()
    DoCmd.Close
End Sub

Private Sub cmdDelete_Click()
' delete record
' check existing record
If Not (Me.formStudentSub.Form.Recordset.EOF And Me.formStudentSub.Form.Recordset.BOF) Then
'confirm delete
        If MsgBox("Confirm Delete", vbYesNo) = vbYes Then
        'delete now
        CurrentDb.Execute " DELETE from student " & _
        " WHERE StudentID= " & Me.formStudentSub.Form.Recordset.Fields("StudentID")
        'refresh data in the sub form
        Me.formStudentSub.Form.Requery
        End If
End If

End Sub

Private Sub cmdEdit_Click()
'check whether data exist in the list
If Not (Me.formStudentSub.Form.Recordset.EOF And Me.formStudentSub.Form.Recordset.BOF) Then

'get data into text box

With Me.formStudentSub.Form.Recordset
Me.txtID = .Fields("StudentID")
Me.txtName = .Fields("StudentName")
Me.cboGender = .Fields("Gender")
Me.txtPhone = .Fields("Phone")
Me.txtAddress = .Fields("Address")

'store id of student in tag of student id incase of od change
Me.txtID.Tag = .Fields("StudentID")

'change caption of add button to update
Me.cmdAdd.Caption = "Update"

'disable edit button
Me.cmdEdit.Enabled = False

End With
End If
End Sub

Attached Files

Experience with STMT_CONC-LITERALS and triggers?

$
0
0
Hi!

DB2 10.1 on Windows. Application is Weblogic 11g on the same machine.

We recently found that some of our transactions are greatly accelerated by changing STMT_CONC from OFF to LITERALS.

But, when we did so, another transaction began failing:

com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-723, SQLSTATE=09000, SQLERRMC=schema.triggername;-724;54038;schema.triggername, DRIVER=4.15.113

It looks like 724 is related, which says

The activation of object-name of type object-type would exceed the maximum level of indirect SQL cascading.

The trigger is aimed at updating a timestamp column to the current time when there is an update.

This does not happen with STMT_CONC set to OFF.

Has anyone run across this sort of thing?

Thanks,
Art

Locklist Change in DB2 diag log

$
0
0
Hello All,

I see the below 2 messages in the diag log. First message says a very low availability while the second message just after 7 seconds shows a very high available number. There is no lock escalation message. Can you please help let me know the reason the reason around this?

2015-09-17-09.55.19.922724+330 E259394A605 LEVEL: Warning
PID : 11993140 TID : 53202 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
APPHDL : 0-17443 APPID: XXXXXXXXXXXXXX
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 53202 EDUNAME: db2agent (NOWPROD) 0
FUNCTION: DB2 UDB, lock manager, sqlpUpdateMemStatus, probe:611
DATA #1 : <preformatted>
Locking memory management: LLM-memory low.
Escalation threshold activated.
LLM-lock list size = 420184
LLM-lock list available = 221

2015-09-17-09.55.26.589188+330 E260000A609 LEVEL: Warning
PID : 11993140 TID : 33670 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
APPHDL : 0-21508 APPID: YYYYYYYYYYYYYY
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 33670 EDUNAME: db2agent (NOWPROD) 0
FUNCTION: DB2 UDB, lock manager, sqlpUpdateMemStatus, probe:611
DATA #1 : <preformatted>
Locking memory management: LLM-status normal, all LLM-thresholds resolved.
LLM-lock list size = 424148
LLM-lock list available = 332505

Thanks & Regards,
Dhiraj

2nd set of Diag messages

$
0
0
Hello All,

Below is second set of Diag messages. Can you please help understand the issue (if any). Our application processing got very low during this time period.

2015-10-29-11.09.47.729533+330 I29008070A544 LEVEL: Severe
PID : 1966518 TID : 43521 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-58463 APPID: *LOCAL.db2inst1.151026222311
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 43521 EDUNAME: db2agent (instance) 0
FUNCTION: DB2 UDB, base sys utilities, sqleForceAgents, probe:15
DATA #1 : Hexdump, 4 bytes
0x07000019FAFF5010 : 0000 04CE ....

2015-10-29-11.11.54.775705+330 E29008615A428 LEVEL: Info
PID : 1966518 TID : 3723 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
HOSTNAME: nowdbprod
EDUID : 3723 EDUNAME: db2logmgr (NOWPROD) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3108
DATA #1 : <preformatted>
Started archive for log file S0064494.LOG.

2015-10-29-11.11.59.635123+330 I29009044A537 LEVEL: Info
PID : 1966518 TID : 3723 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
HOSTNAME: nowdbprod
EDUID : 3723 EDUNAME: db2logmgr (NOWPROD) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
DATA #1 : <preformatted>
Completed archive for log file S0064494.LOG to XX

2015-10-29-11.12.49.933992+330 I29009582A544 LEVEL: Severe
PID : 1966518 TID : 43521 PROC : db2sysc 0
FUNCTION: DB2 UDB, base sys utilities, sqleForceAgents, probe:15
DATA #1 : Hexdump, 4 bytes
0x07000019FAFF5010 : 0000 04CE ....

2015-10-29-11.16.29.666978+330 E29010127A428 LEVEL: Info
PID : 1966518 TID : 3723 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
HOSTNAME: nowdbprod
EDUID : 3723 EDUNAME: db2logmgr (NOWPROD) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3108
DATA #1 : <preformatted>
Started archive for log file S0064495.LOG.

2015-10-29-11.16.34.281077+330 I29010556A537 LEVEL: Info
PID : 1966518 TID : 3723 PROC : db2sysc 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
DATA #1 : <preformatted>
Completed archive for log file S0064495.LOG to YY

2015-10-29-11.17.54.752090+330 I29011094A508 LEVEL: Warning
PID : 1966518 TID : 70204 PROC : db2sysc 0
FUNCTION: DB2 UDB, database monitor, sqm___sqm_snap_db_locks, probe:100
MESSAGE : Lock monitoring output may be incomplete.

2015-10-29-11.21.21.021273+330 I29011603A544 LEVEL: Severe
PID : 1966518 TID : 43521 PROC : db2sysc 0
FUNCTION: DB2 UDB, base sys utilities, sqleForceAgents, probe:15
DATA #1 : Hexdump, 4 bytes
0x07000019FAFF5010 : 0000 04CE ....

2015-10-29-11.23.22.066495+330 I29012148A544 LEVEL: Severe
PID : 1966518 TID : 43521 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-58463 APPID: *LOCAL.db2inst1.151026222311
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 43521 EDUNAME: db2agent (instance) 0
FUNCTION: DB2 UDB, base sys utilities, sqleForceAgents, probe:15
DATA #1 : Hexdump, 4 bytes
0x07000019FAFF5010 : 0000 04CE ....

2015-10-29-11.26.19.360026+330 E29012693A1532 LEVEL: Warning
PID : 1704258 TID : 772 PROC : db2acd 0
INSTANCE: db2inst1 NODE : 000
HOSTNAME: nowdbprod
EDUID : 772 EDUNAME: db2acd 0
FUNCTION: DB2 UDB, Health Monitor, HealthIndicator::update, probe:500
MESSAGE : ADM10501W Health indicator "Database Automatic Storage Utilization"
("db.auto_storage_util") breached the "upper" warning threshold of
"80 %" with value "80 %" on "database" "db2inst1.NOWPROD ".

2015-10-29-11.28.02.588950+330 I29014226A1206 LEVEL: Error
PID : 1966518 TID : 46889 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
APPHDL : 0-32645 APPID: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAa
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 46889 EDUNAME: db2agent (NOWPROD) 0
FUNCTION: DB2 UDB, sort/list services, sqlsFetchNextTempRecord, probe:504
MESSAGE : ZRC=0x80040003=-2147221501=SQLD_INTRP "USER INTERRUPT DETECTED"
DIA8003C The interrupt has been received.
DATA #1 : Codepath, 8 bytes
8
DATA #2 : ZRC, PD_TYPE_ZRC, 4 bytes
0x80040003
DATA #3 : SQLS_MBUFS, PD_TYPE_SQLS_MBUFS, 1720 bytes

SQLS_MBUFS: Address:7000031d5805578, Size:x6b8, Size:1720
x0688 pValues 7000031cbf6d8a0
x0690 recptr 7000031cbf6d780
x06AC records 33827
x0698 recordBuffer 7000031cbf6d780
x06A0 iNumBufferedRecords 0
x06A8 mergeFlags x00000002
- SQLS_CALLED_FETCH_NEXT_TEMP_REC
x06B0 sortNum 0
x06B4 bufferedFetchRC -2147221501

2015-10-29-11.28.11.747018+330 E29015433A1116 LEVEL: Error
PID : 1966518 TID : 46889 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
APPHDL : 0-32645 APPID: AA
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 46889 EDUNAME: db2agent (NOWPROD) 0
FUNCTION: DB2 UDB, relation data serv, sqlrr_rds_common_post, probe:870
MESSAGE : ZRC=0x8012006D=-2146303891=SQLR_CA_BUILT
"SQLCA has already been built"
DATA #1 : String, 28 bytes
UCstate terminate bit is set
DATA #2 : Hexdump, 4 bytes
0x00000002C5B7BE28 : 0000 01D8 ....
DATA #3 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -1224 sqlerrml: 0
sqlerrmc:
sqlerrp : SQLRRRCP
sqlerrd : (1) 0x80040003 (2) 0x00000003 (3) 0x00000000
(4) 0x00000000 (5) 0xFFFFEC0A (6) 0x00000000
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate:

2015-10-29-11.30.16.542987+330 E29016550A428 LEVEL: Info
PID : 1966518 TID : 3723 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
HOSTNAME: nowdbprod
EDUID : 3723 EDUNAME: db2logmgr (NOWPROD) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3108
DATA #1 : <preformatted>
Started archive for log file S0064496.LOG.

2015-10-29-11.30.20.847518+330 I29016979A537 LEVEL: Info
PID : 1966518 TID : 3723 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
HOSTNAME: nowdbprod
EDUID : 3723 EDUNAME: db2logmgr (NOWPROD) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
DATA #1 : <preformatted>
Completed archive for log file S0064496.LOG to XX

2015-10-29-11.30.49.039837+330 I29017517A1199 LEVEL: Error
PID : 1966518 TID : 82775 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
APPHDL : 0-34902 APPID: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAa
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 82775 EDUNAME: db2agent (NOWPROD) 0
FUNCTION: DB2 UDB, sort/list services, sqlsFetchNextTempRecord, probe:504
MESSAGE : ZRC=0x80130003=-2146238461=SQLS_INTRP "Interrupt. User Cancel."
DIA8003C The interrupt has been received.
DATA #1 : Codepath, 8 bytes
1
DATA #2 : ZRC, PD_TYPE_ZRC, 4 bytes
0x80130003
DATA #3 : SQLS_MBUFS, PD_TYPE_SQLS_MBUFS, 1720 bytes

SQLS_MBUFS: Address:70000318238f160, Size:x6b8, Size:1720
x0688 pValues 7000031a36501e8
x0690 recptr 7000031a3650080
x06AC records 132037
x0698 recordBuffer 7000031a3650080
x06A0 iNumBufferedRecords 2
x06A8 mergeFlags x00000002
- SQLS_CALLED_FETCH_NEXT_TEMP_REC
x06B0 sortNum 0
x06B4 bufferedFetchRC 0

2015-10-29-11.30.50.820508+330 E29018717A1117 LEVEL: Error
PID : 1966518 TID : 82775 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : NOWPROD
APPHDL : 0-34902 APPID: AAA
AUTHID : DB2INST1 HOSTNAME: nowdbprod
EDUID : 82775 EDUNAME: db2agent (NOWPROD) 0
FUNCTION: DB2 UDB, relation data serv, sqlrr_rds_common_post, probe:870
MESSAGE : ZRC=0x8012006D=-2146303891=SQLR_CA_BUILT
"SQLCA has already been built"
DATA #1 : String, 28 bytes
UCstate terminate bit is set
DATA #2 : Hexdump, 4 bytes
0x0000000124ADFE88 : 0000 01D8 ....
DATA #3 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -1224 sqlerrml: 0
sqlerrmc:
sqlerrp : SQLRRRCP
sqlerrd : (1) 0x80130003 (2) 0x00000003 (3) 0x00000000
(4) 0x00000000 (5) 0xFFFFEC0A (6) 0x00000000
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate:


Thanks & Regards,
Dhiraj

How to know if a table has a non-unique clustered index?

$
0
0
Hi,

Give a user table ‘MyTable’. How to know whether the table contains a non-unique clustered index by using SQL query?

Thanks

Peformance issue on DB2 9.5 FP 10 Prod.

$
0
0
Looking for an advise.

We have env DB2 ESE 9.5 FP 10 [AIX 6] on both prod & test. Customer facing performance problem on their batch job after 16.6.15. They are running important batch after business hours, it use to complete below 4 hours however nowadays it takes 8 hours to complete. Whereas the prod db was refreshed on test and tested the batch job with same schedule and data, it only takes 2 and half hour to complete. It just running 3 times faster than prod.

Production server is more powerful than test in terms of RAM,etc..We use to take tablespace partial backup during this batch on prod, since it was running long back..

3 instances on prod, db2inst1 - 6 DB,db2inst2 - 2 DB and db2inst3 - 2 DB. Recently, i mean after 27-6-15 there are 4 new dbs has been created on db2inst1 [2 + 4 = 6]. STMM was enabled in all databases in respective instances. Prod have 48 GB RAM but Test have 24 RAM.

Only one instance on test, but 15 databases [db2inst1 - 15 DB].

Customer concern is why job takes more time than test since prod have more capacity and capability? They need 90% of OS or db2 resource should assigned to only one database [ Critical DB] remaining 10% of resource can be assign to others instances and dbs.

What could be the reason here jobs takes 3 time slower than test suddenly. How to optimize the prod system back. Can anyone able to help. Thanks in advance.

US Based Semi-Managed Dedicated Server - Dedicated IPs - 4x Core - 10TB BW - 8GB RAM

$
0
0
GroomHost.com - Provides Perfect Money Hosting & Webmoney Shared, Reseller, VPS, Dedicated web hosting and SSL


GroomHost Web Hosting – Providing you the quality service and support. Our plans are competitive and well priced. We have 24/7 support. Also, there's our money back guarantee.



Account Features

• FREE instant Setup
• Instant Account Activation
• 24/7 Technical Support
• 30 Days Money Back Guarantee
• LiteSpeed Web Server
• CloudLinux Maximum Performance & Reliability
• Latest cPanel with Softaculous
• Latest PHP 5.2x,5.3x Perl, CGI & MySQL
• RVSiteBuilder Pro
• FREE Website Migrations
• And much more!




We Accept:

• Payza(AlertPay)
• Web Money
• Perfect Money
• Money Gram
• Western Union
• Skrill(Moneybookers)
• Bitcoin.
• PayPal
• Stripe(Credit Card)
• Paymentwall




Dedicated Server Packages


==================================================
Starter: $200/Month
==================================================

Dual Core
RAM 2 GB
Bandwidth 10 X 1000 GB
Hard Disk 250 GB
Dedicated IPs 1
Server Location United States
Best for starter teams

ORDER NOW




==================================================
Plus+: $500/Month
==================================================

Intel Core i7
RAM 16 GB RAM
Bandwidth 10 X 1000 GB
Hard Disk 2 X 1 TB
Dedicated IPs 1
Server Location United States
Best for Business

ORDER NOW



==================================================
Enterprise: $300/Month
==================================================


Quad Core
RAM 8 GB
Bandwidth 10 X 1000 GB
Hard Disk 1 TB
Dedicated IPs 1
Server Location United States
Best for Enterprise

ORDER NOW




30 Days Money Back Guarantee
If we fail to satisfy you we believe it's our fault you can get refund with in 30 days without any question.

99% Uptime Guarantee
We work hard to maintain servers uptime but there are many unpredictable threats such as DDoS attacks, hardware issues, natural disasters that can effect our datacenter, so we guarantee 99% uptime.

24/7 Support
We have a team of support staff waiting to deal with support tickets. If you ever feel you need a little extra help feel free to send us a support ticket. We can guarantee a quick resolution to any problems you encounter.

Migration From Another Host
No worries! We've got you covered. After signup just fill out our transfer form and we'll transfer over your existing cPanel account from your current host with all data intact and no website downtime usually within a few hours.


For any query email us: support[at]GroomHost.com
Like us on Facebook fb.com/GroomHost
Follow us on Twitter@GroomHost

Access denied try to write on read only file

$
0
0
db2 10.5 on linux redhat 2.6

SQL0970N The system attempted to write to a read-only file.
SQLSTATE=55009

Diag log getting this error.

2015-10-31-09.51.29.582429-240 E5224E1163 LEVEL: Error (OS)
PID : 22711 TID : 140736985032448 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
HOSTNAME: vatprod
EDUID : 19 EDUNAME: db2loggr (SAMPLE) 0
FUNCTION: DB2 UDB, oper system services, sqloopenp, probe:80
MESSAGE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
DIA8701C Access denied for resource "", operating system return code
was "".
CALLED : OS, -, open OSERR: EACCES (13)
DATA #1 : Codepath, 8 bytes
4:11:15:20:24:40
DATA #2 : File name, 72 bytes
/udb/home/db2inst1/db2inst1/NODE0000/SQL00001/LOGSTREAM0000/S0000000.LOG
DATA #3 : SQO Open File Options, PD_TYPE_SQO_FILE_OPEN_OPTIONS, 4 bytes
SQLO_REVISE, SQLO_READWRITE, SQLO_SHAREREAD, SQLO_FORCE_NON_CIO_NON_BUFFERED, SQLO_WRITETHRU
DATA #4 : Hex integer, 4 bytes
0x00000180
DATA #5 : signed integer, 4 bytes
0
DATA #6 : Hex integer, 4 bytes
0x00004000
DATA #7 : String, 105 bytes
Search for ossError*Analysis probe point after this log entry for further
self-diagnosis of this problem.

2015-10-31-09.51.29.594455-240 I6388E2395 LEVEL: Error (OS)
PID : 22711 TID : 140736985032448 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
HOSTNAME: vatprod
EDUID : 19 EDUNAME: db2loggr (SAMPLE) 0
FUNCTION: DB2 Common, OSSe, ossErrorIOAnalysis, probe:100
CALLED : OS, -, open OSERR: EACCES (13)
DATA #1 : String, 170 bytes
A total of 2 analysis will be performed :
- User info
- Path access permission

Target file = /udb/home/db2inst1/db2inst1/NODE0000/SQL00001/LOGSTREAM0000/S0000000.LOG
DATA #2 : String, 184 bytes
Real user ID of current process = 497
Effective user ID of current process = 497
Real group ID of current process = 499
Effective group ID of current process = 499
DATA #3 : String, 41 bytes
current sbrk(0) value: 0x0000000000677000
DATA #4 : String, 352 bytes
Information of each subdirectory leading up to the first inaccessible one is shown in the format below :
<UID>:<GID>:<permissions> (subdirectories)

0:0:755 (udb)
0:0:755 (home)
497:499:755 (db2inst1)
497:499:775 (db2inst1)
497:499:775 (NODE0000)
497:499:750 (SQL00001)
497:499:750 (LOGSTREAM0000)
497:499:600 (S0000000.LOG)
CALLSTCK: (Static functions may not be resolved correctly, as they are resolved to the nearest symbol)
[0] 0x00007FFFEC788E1B /udb/home/db2inst1/sqllib/lib64/libdb2osse.so.1 + 0x221E1B
[1] 0x00007FFFEC78A3A3 ossLogSysRC + 0xB3
[2] 0x00007FFFEC77C244 /udb/home/db2inst1/sqllib/lib64/libdb2osse.so.1 + 0x215244
[3] 0x00007FFFEC77950D ossErrorAnalysis + 0x2D
[4] 0x00007FFFF2D367CB sqloSystemErrorHandler + 0x71B
[5] 0x00007FFFF0D49E9A sqloopenp + 0xA3A
[6] 0x00007FFFF0D7CABE _Z8sqlpgolfPKcP10SQLPG_XHDRP9SQLP_LFCBm + 0xAE
[7] 0x00007FFFF0DF86E4 _Z18sqlpgOpenLogExtentP9SQLP_DBCBPKcPP9SQLP_LECBjm Pc + 0x7F4
[8] 0x00007FFFF0DD713A _Z29sqlpgCircularCleanAndOpenLogsP14sqlpMasterDbcb + 0x63A
[9] 0x00007FFFF0DD5B39 _Z8sqlpgiclP15sqlpDbcbsHandle + 0xD9
[10] 0x00007FFFF0DDE341 _ZN11sqpLoggrEdu14sqlpgLoggrInitEv + 0x451
[11] 0x00007FFFF0E65E6B _ZN11sqpLoggrEdu10RunEDUInitEv + 0x10B
[12] 0x00007FFFF1592A07 _ZN9sqzEDUObj9EDUDriverEv + 0xD7
[13] 0x00007FFFF0D5E3A3 sqloEDUEntry + 0x303
[14] 0x000000394D807A51 /lib64/libpthread.so.0 + 0x7A51
[15] 0x000000394D4E89AD clone + 0x6D

2015-10-31-09.51.29.616431-240 I8784E642 LEVEL: Warning
PID : 22711 TID : 140736985032448 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
HOSTNAME: vatprod
EDUID : 19 EDUNAME: db2loggr (SAMPLE) 0
FUNCTION: DB2 UDB, data protection services, sqlpgolf, probe:220
MESSAGE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
DIA8701C Access denied for resource "", operating system return code
was "".
DATA #1 : <preformatted>
Error opening: /udb/home/db2inst1/db2inst1/NODE0000/SQL00001/LOGSTREAM0000/S0000000.LOG.

Tried creating in diff path, tried changing DFTDBPATH, permissions are same with other servers, tried manually creating the file able to create it. db2 is not able to create

tried db2 create db test on /diff path same error.

regards
paul

Getting Started with SQL

$
0
0
Hi Folks,

Most php websites have a SQL database behind them to manage the information on user profiles and settings.


If you are starting out with SQL an easy way to get quickly learning the language can be found at
http://www.sqllocus.com.

SQLLocus it is a complete database system without the usual complications that come with enterprise database servers.

Once you have a solid understanding of the SQL language moving towards an enterprise database will be much
easier.

thanks
Martin

DB idea: Updates on Connected/Disconnected Clients using MySQL Replication/Sync

$
0
0
Hi,
I started looking to solve this application using MySQL and Java (but I'm flexible). I'm trying to deal with network-related concerns for the DB.
Here's a picture:

DBDesign-pic.png

Using MySQL Replication for database transfers

On CONNECT:
The client-side updates are synced on the server.
When this sync is complete, then
a) A routine on the server runs the update SQL against the server DB
b) The client software switches to using DB (instead of DB Clone)

CONNECTED:
Client updates SQL is written to UPn, which syncs to server-side UPn,
which triggers updates to server-side DB, which syncs to client-side DB

On DISCONNECT:
Create DB Clone on client, and client software switches to using it.

DISCONNECTED:
Client updates SQL is written to UPn, and applied to DB Clone on client.

================================================
CONCERNS:

Automation: This site will run without me there, so if there is a problem, then I will be able to remote in to the server, but not the client machines. I am hoping that I will be able to script the handling of when rep/sync goes awry. (Will it go awry?)

Network events: I will need to know when the network connects and disconnects. Can I get notified of this in MySQL? (And can a MySQL procedure connect with a local Java program outside of MySQL to notify of an event?) Or not Java?

Sync events: I will need to be able to fire/catch events when MySQL sync occurs. Overall, I need the syncing to be able to happen pretty quickly (when the client is connected, for example).

So, these are my concerns in trying to handle the needs the above way. This is a small DB, and the size of updates during disconnects is also pretty small. Please let me know if you think this presents (unwanted) concerns!
TIA,
Mark
Attached Images

Need help with comboboxes

$
0
0
Need help with creating comboboxes
Hello, I want to know if I can create comboboxes using EMS Manager for MySQL. I created a foreign key and a join. Here's my code so far:

Code:

ALTER TABLE `songs_tbl`
ADD CONSTRAINT `FK_region`
FOREIGN KEY (`songRegion_id`) REFERENCES `region_tbl` (`region_id`)
ON UPDATE CASCADE;

SELECT songs_tbl.songName_txt AS newSongName_txt, region_tbl.region_txt AS newRegion_txt
FROM songs_tbl
LEFT JOIN region_tbl on songs_tbl.songRegion_id = region_tbl.region_id;

However I'm just able to type id value and it's not a combobox. Can I create comobboxes using mysql?

Extract all Table's Data (including BLOB and CLOB Field's Data) from Source Database

$
0
0
Hi Friends,

Regularly I extracted (Source Database) the table’s data as a flat file (.DAT) via spooling in SQL*Plus Tool in Oracle database and Import the extracted data into Destination database (client Database and importing is the Client work).

Here my problem is some of the tables (more than 20 tables) are having BLOB and CLOB fields

Example Table Name: TEST_BLOB_CLOB

ID Name Address Blob_COL Clob_COL
-------------------------------------------------------------
1001 Sanjay Chennai Audio File more than 32k text values
1002 Ragav Mumbai PDF File more than 32k text values
1003 Vijay Delhi Word File less than 32k text values
1004 Sam Nagpur Txt file more than 32k text values

Note:

* In BLOB_COL some files are loaded in the database itself and some files are locally kept in the server computer (only path has been indicated)

* I have googled and searched here too everywhere I am seeing only single image or audio or pdf file extc has been extracted from BLOB field like "SELECT BLOB INTO l_blob FROM test_blob_clob WHERE id = 1005;" in PLSQL procedure.

* I dont need a single blob/clob data.

* I need to extract all BLOB/CLOB data with related to the rest of the filed as like as combined data.

Import the data in destination database is not my job, My job is only Extract the table's data as a flat file (.DAT)

Here Table are created like both BLOB and CLOB in single table and BLOB alone in another table and CLOB alone in some other table.

Please any one help me how I need to extract all the table's data as well as all BLOB and CLOB fields’ which has mentioned in the example table and I need to give the extracted data to client.

Thanks
Sanjay R

EXTTT.jpg
Attached Images

SQL database design and management help

$
0
0
I am looking to build out my SQL database but don't yet have all the data. I know what dimension and measures I want to create but don't have all the data for it. For example I am looking to build out our Revenue forecast model for the next 5 year and would like to set up a data cube to capture all of the pieces to this revenue model as the data becomes available. Some of these pieces will be forecast data for 2016-2020. Several questions....is there a way in SQL to add in the basic structure of the cube (like year, 2016, 2017, 2018, etc...) and add the data later?

Also what OLAP tool could I use to manage the data and populate it at a later date? Ideally I would like to have something like an Excel pivot table that people could set up themselves where then can get the data view they are looking for and then add in data via the pivot table design and have it write back to the database. Same way Oracle's Smartview addin for excel allows users to query the data view they want and be able to write back to the HFM database. Is there a way either through Excel pivot table or some excel addin that will allow me to write and save data to the database? And is there a tool that will allow me to add additional dimension values, like years to the year field as I move forward? For example let's say I want to add in years 2021-2025 now, is there a tool that will allow me to append these years to the "year" field dimension?

Thanks!

neither waits for resource in forall statement, nor raises error!!!

$
0
0
Hi,

I am using Oracle Database 11g Release 11.2.0.4.0 - 64bit Production.
I want to raise an error in scenario:

In session 1 I update a row and do not commit.
In session 2 I run procedure where cursor selects the same row and updates it.


However in session 2 it neither updates the row, nor it raises an exception of deadlock.

In procedure in session 2, I have used forall update.
When I use simple for loop, it waits till i commit session 1 and then updates. I NEED this to be IMPLEMENTED in case of FORALL statement, as we use FORALL statement for insert and update in our project as a general rule.




Can you please help me in doing this... ?


My code using for loop :

create or replace procedure Proc_Ptemp is

Cursor c1 is
select * from ptemp;
m_SqlErrm VARCHAR2(150);
begin
for v1 in c1 LOOP
UPDATE ptemp SET d=add_MonthS(d,1);
END LOOP;
EXCEPTION
WHEN OTHERS THEN
m_SqlErrm:=SUBSTR(SQLERRM,1,200);
end Proc_Ptemp;



My code using forall loop:

create or replace procedure Proc_Ptemp_forall is

Cursor c1 is
select * from ptemp;
arr_msg STR_ARRAY;
arr_d DATE_ARRAY;
m_SqlErrm VARCHAR2(150);
Err_Cnt NUMBER;
m_Err_index VARCHAR2(150);
m_Err_Code VARCHAR2(150);
begin
FEtCH C1 BULK COLLECT INTO
arr_msg,arr_d;
BEGIN
FORALL I IN arr_msg.FIRST..arr_msg.LAST SAVE EXCEPTIONS
UPDATE ptemp SET d=add_MonthS(d,1)
WHERE msg=arr_msg(i);
EXCEPTION
WHEN OTHERS THEN
Err_Cnt:=SQL%BULK_EXCEPTIONS.COUNT;
FOR j IN 1..Err_Cnt LOOP
m_Err_index:=SQL%BULK_EXCEPTIONS(j).ERROR_INDEX;
m_Err_Code:= SQL%BULK_EXCEPTIONS(j).ERROR_CODE;
DBMS_OUTPUT.PUT_LINE(m_Err_Code);
END LOOP;
END;
EXCEPTION
WHEN OTHERS THEN
m_SqlErrm:=SUBSTR(SQLERRM,1,200);
end Proc_Ptemp_forall;


Table I update:
select * from ptemp for update
MSG D
1 11/1/2015
2 11/2/2015
3 11/3/2015
4 11/4/2015
5 11/5/2015
6 11/6/2015
7 11/7/2015

Please help me in solving this

Thanks and regards
P J S
Viewing all 13329 articles
Browse latest View live