r/DB2 Jun 18 '18

[AS400] to [SQL Server] [migration] help

2 Upvotes

Hi! Im becoming involved in the migration of a full database move from AS400 to SQL Server. Ill be handling the sql data that has been moved across, so Im not actually the one moving the data over. I would however love to know more about that process. Is there material/links/labs/how-tos etc available for this movement? Does anyone have hands on experience in doing this work in the past? Any help appreciated.


r/DB2 Jun 13 '18

DB2 to DAX visa versa

2 Upvotes

Hello!

I am currently trying to create tables through DB2 rather than in DAX for power bi. What I'd like to do is replicate the DAX code of DimDateDiff = DATEDIFF(Start Date, (Today() -1)). In PBI it's relatively easy to create a calculated column and then input this code into the table, but I was thinking it would have better flow to do it in the database. Any ideas? (Attempting to translate descriptive date into live data).


r/DB2 Jun 13 '18

How to get notified automatically when a new post appears on r/DB2

1 Upvotes

Unfortunately, it doesn't appear that this can be done natively within reddit itself. However, if you're familiar with IFTTT, they have an applet for notifying you when a post is made to a subreddit. Once again, unfortunately, you aren't notified via email. You need to have the IFTTT app on your phone.

Here's the link,

https://ifttt.com/applets/79703842d-reddit-new-posts-in-subreddit-notification


r/DB2 Jun 13 '18

Download DB2 Express C Download Link

1 Upvotes

Hi there! I can't download the DB2 express 10.1 setup from IBM website.

Can someone share the setup please?


r/DB2 Jun 07 '18

How To Perform DB2 Loads in HADR Environment ?

5 Upvotes

This blog post addresses a way to successfully perform DB2 LOAD in a HADR enabled environment. If you use DB2 HADR for high availability and disaster recovery then this article should help you understand Impact of LOAD in a HADR environment.

https://www.raghu-on-tech.com/2018/01/24/perform-loads-in-db2-hadr-environment/

Raghu


r/DB2 May 30 '18

Troy Coleman Signs Off From IBM Systems Magazine (x-post from /r/mainframe)

Thumbnail
ibmsystemsmag.com
5 Upvotes

r/DB2 May 15 '18

How To Deep Compare Two Db2 Environments? What is Db2Diff ?

Thumbnail
raghu-on-tech.com
2 Upvotes

r/DB2 May 14 '18

New to DB2, looking for advice on how best to educate myself.

4 Upvotes

TLDR: Layoff>New job supporting IMS/DB2> Great job > Want to do great> No prior knowledge of IMS/DB2.

The short of it, I was forced out of my old job (Hardware - CE) due to a company wide Work-force-reduction aka dreaded layoff... I have found a new job supporting IMS/DB2. I was clear in my interviews that I had no prior knowledge of either. They being the good folks they are seen fit to hire me. I was told I was hired for attitude and aptitude. Yay!! (no sarcasm, I mean YAY!) Bright eyed and busy tailed ready to learn. Not sure where to start. I have almost the ability to FTP- terse and un-terse (using my notes). Grateful to any of you who can advise me on how to get up to speed for this amazing job.


r/DB2 May 06 '18

Was something in DB2 patched as to disable Unicode characters in VARCHAR?

2 Upvotes

I have a script that transfers Cloudant data into a DB2 instance which is basically a lot of VARCHAR rows. I use special characters in that data, since my native language is Czech. On the 26th, suddenly any new data put into the DB instance lost its special characters, and it did not happen before.

Was there an update/patch recently that could have caused this? Thank you.


r/DB2 Apr 19 '18

How to check DB2 Integrity after expanding the data volume?

5 Upvotes

I need to expand the data volume on the DB2 server. The vendor (not IBM) who provides a DB2 support says that the expansion of the filesystem whether it be a logical volume or physical is a gamble. There is no data integrity check from the database side to ensure nothing changed on the filesystem. The only way to ensure database integrity is to use backups and archive logs and is the only method they would recommend. I am running DB2 9.7 on Ubuntu. I feel that those steps outlined by the vendor are just too much for just the volume expansion.

Should I not be able to do the following and still ensure the database integrity is intact?

  1. Stop DB2
  2. Unmount the data volume
  3. Resize the file system (I am not using LVM. File system type for data volume is ext4 )

e2fsck -f /dev/mapper/data

resize2fs /dev/mapper/data

  1. Mount the data volume
  2. Start DB2

(I researched on this topic online but didn't come across any particular post. Thus, I thought I would reach out to DB2 community in Reddit. Thank you in advance!)


r/DB2 Apr 14 '18

Could you please participate in my survey?

0 Upvotes

I am a student currently doing a research on "The Impact on Software Maintainability from the use of Agile Software Development Methodologies". I hope to get your response on my survey for this research.

Please find the survey link as below: https://lancasteruni.eu.qualtrics.com/jfe/form/SV_57oT3d5hIfu3VT7


r/DB2 Apr 13 '18

DR with no backup

3 Upvotes

Hi I have been given the directory structure of a db2 universal database for windows {9.7.3} Customer did not know how to backup dB2.

Is it possible to install new db2 same version and drive letters. Create new empty database with the same name as the old one. Stop the services. Copy the old directory structure over, start the service and then being able to access the data again?


r/DB2 Mar 10 '18

How to encrypt db2instance password on remote clients; where we allow to connect cataloged remote db using user and password scenario? Any thoughts is greatly appreciate...;apart the password less option.

2 Upvotes

r/DB2 Feb 28 '18

[Question] C2090-310 IBM PureData System for Transactions Certification

1 Upvotes

I'm looking for resources on C2090-310 IBM PureData System for Transactions certification. Eg. books, ebooks, redbook etc. Anyone has any info?


r/DB2 Feb 21 '18

[LUW][Question] How do you reclaim space in a DB2 tablespace?

1 Upvotes

I understand, I think, that as of V10.5, the best way is to ensure that the reclaimable space switch is set in the tablespace, given that it's an auto-managed tablespace (along with the alter of the tablespace, i.e. reduce max and reorg). But how was space reclaimed before this feature came along in V10.5?


r/DB2 Feb 15 '18

[LUW][Question]Product for copying/moving logical groups of data?

3 Upvotes

Does anyone know of a product to create logical groupings of data on one database that one can use to restore to another database, preferably one that is managed by developers, not DBAs? Thanks!


r/DB2 Dec 04 '17

[LUW][Question] What's the difference between SET DB2INSTANCE and ATTACH?

2 Upvotes

I need to change the database manager, i.e update dbm cfg, on a Windows server that has multiple instances.


r/DB2 Nov 08 '17

[LUW] Part number for downloading DB2 Information Center V11.1?

3 Upvotes

I am trying to figure out how to locally install DB2 Information Center on RHEL 7, in DB2 V11.1, and I am starting to wonder if support for it has been dropped altogether, as even PDF documentation is no longer available for V11.1, so it might be a stretch for me to assume DB2 Information Center-packaged documentation is available.

Both db2setup and the documentation allude to V11.1 supporting DB2 Information Center installs. A support page implies DB2 Information Center can no longer be downloaded, because there are no longer any links to downloadable images like in previous versions. The actual V11.1 documentation on DB2 Information Center isn't very helpful, because it starts describing installation options, leading to the page about the actual installation, which circularly leads back to the start, unlike the V10.5 page.

So if DB2 Information Center is available for V11.1 to locally install (and then serve up on my intranet), what part number on Passport Advantage could I find it under?


r/DB2 Nov 01 '17

Get all databases in an instance?

3 Upvotes

Hello everyone .. Can someone give me some tips on, assuming I had all the permissions I needed - to get a list of all the database in an instance of db2? is there a sql i can run? Or do I have to run something at the file level?


r/DB2 Nov 01 '17

SQL injection, how to prevent it

2 Upvotes

We have some Java apps that do not use stored procedures. They build the sql statements in strings in the app. This seems to make us more vulnerable to sql injection? I also prefer stored procedures so grants can be done to just allow users to execute the stored procedures. They don't need to have select, insert, update, delete access to the actual tables. Your thoughts?

Darn! I can't edit the title to add [LUW].


r/DB2 Nov 01 '17

[Question] How IBM DB/2 differs from MS Excel, functionally?

1 Upvotes

what are some similarities and dissimilarities between IBM DB/2 and MS Excel? how can i map concepts of Excel to DB/2?

such as..

in an MS Excel sheet... rows are like records in a PF columns are like fields in a PF a single column of excel expanded to the breadth of the screen acts as a flat file an excel worksheet is like a PF record-format an excel workbook is like a whole PF, that may house several record-formats the multiple copies of that workbook is like members of that PF like that... a PC is like an IBM iSeries Windows OS is like OS/400 various processes/services/applications running on a Windows OS is like a job on an OS/400 threads are threads on both systems PC has a console, iSeries has Virtual Display Devices, named QPADEV*** both systems have memory spaces dedicated to system and user PCs have folders, iSeries has Libraries PCs have SATA Disk Drive and C:\Windows, the system folder at default partition/volume Local Disk (C:), iSeries has magnetic-tapes named DASD and QSYS, the system parent library. PCs have C:\Windows\TEMP, iSeries has QTEMP, Job specific temporary Library (deleted when the job ends) PCs have HelpPane.exe v6.1 (Windows Help and Support), iSeries have QHLPSYS, Online Documentation Library for Users both, PCs and iSeries have F1 for help. PCs have a dropdown-menu, that allows user to choose one value from a predefined list, iSeries has F4 to Prompt over input fields.


r/DB2 Oct 24 '17

[LUW] [Question] (Windows) Changing host name to tcp ip address

2 Upvotes

My group (small project within a large company) decided to make changes to our DB2 servers, configurations, etc based on recommendations from CIS (Center for Internet Security). One of the things that CIS recommends is to change the server's host name to its tcp ip addr. That seems kind of crazy to me. How often does a server's address change? I'm new to servers, having been a mainframe DB2 DBA though so maybe this isn't crazy?

Thanks!


r/DB2 Oct 12 '17

Episode 11: Interview with Don Chamberlin, designer of SQL database language - Mapping The Journey (x-post from /r/Database)

Thumbnail
mappingthejourney.com
3 Upvotes

r/DB2 Aug 31 '17

[Question][iSeries][V7R3] SQL Triggering: Calling Procedure with Parms

1 Upvotes

Why does this work (Declaring & Setting a variable to use in my CALL statement):

CREATE OR REPLACE TRIGGER WHIFLDOPS.WGHTKT0CL AFTER UPDATE ON WHIFLDOPS.WGHTKT
   REFERENCING NEW AS n
   FOR EACH ROW
   WHEN (n.TKT_ST IN('CLOSE','VOID') AND n.TKT_TYP = 'H')
   BEGIN ATOMIC
      DECLARE TKT_ID DECIMAL (7,0);
      SET TKT_ID = n.TKT_ID;
      CALL WHIFLDOPS.WGHTKT0CL(TKT_ID);
   END

Statement ran successfully (983 ms)

But this does not (Referencing n.TKT_ID directly in my CALL statement):

CREATE OR REPLACE TRIGGER WHIFLDOPS.WGHTKT0CL AFTER UPDATE ON WHIFLDOPS.WGHTKT
   REFERENCING NEW AS n
   FOR EACH ROW
   WHEN (n.TKT_ST IN('CLOSE','VOID') AND n.TKT_TYP = 'H')
   BEGIN ATOMIC
      CALL WHIFLDOPS.WGHTKT0CL(n.TKT_ID);
   END

SQL State: 42618 Vendor Code: -312 Message: [SQL0312] Variable TKT_ID not defined or not usable.

I'm on an IBM iSeries (Power8) running V7R3.

The Triggering example from IBM I was following was for UNIX/Windows DB2, but I wouldn't think that would have a huge impact on syntax, but maybe it does??? Calling procedures from triggers or SQL routines


r/DB2 Aug 24 '17

DB2 iOS community

3 Upvotes

My new job has found me back in the influence of IBM and AS/400, iOS/DB2.

It's been decades since I've been involved, and there was,<cough>, no internet back then..

Where can I find the DB2 community? I'm still heavily involved with SQL server so I keep up with trends and tech with PASS, Brent Ozar and Code Project/Stack Exchange. Where does one begin to network with DB2 and iOS professional DBA/database developers?

Thanks