SlideShare a Scribd company logo
1 of 11
Download to read offline
Before you Start
I highly recommend you make a backup of your database prior to running any SQL commands. If you break something, you’ll
want to have a contingency plan.
How To Check Your POBS Table Data in MS SQL Using The
Command-Line
If you’re using Microsoft SQL Express as your Primavera database engine, then you might have also installed the handy
Microsoft SQL Server Management Studio to manage your databases. If you did, you should see it in your Start->All Programs
list in Windows. In case you don’t have SQL Server Management Studio, you can still dig in using the SQLCMD and the
command line.
What we want to do here is to check the POBS table in our Primavera database for entries. If it’s empty, good. If it’s not, then
we’ll clean it up.
1) Open a Command Prompt in Windows.
2) Login to your SQL Express database engine with the following command:
sqlcmd -S server1SQLExpress -U SqlUserAccount -P SqlPassword
On my system, this looks something like this:
sqlcmd -S localhostSQLExpress -U sa -P Prima123Vera
It’s best to login with the “sa” user – hopefully you know the password. You might try “Prima123Vera” if you don’t – it was
used in a lot in install guides.
3) Get a listing of databases on your system
If your login was successful, you should see a prompt that looks like “1>”. That means you’re in.
Let’s get a listing of all of the databases in your install. Type the following at the prompt:
SELECT name from sys.databases
Go
These are on separate lines. You should see a list of all of your databases. Now let’s pick one.
4) Set a database to use
Once you’ve identified your database name, you want to tell SQL that you’ll be working inside that db. Type this:
use my_db_name_here
Go
Here’s what you should get in response.
5) Query the POBS Table
To see what data is in the POBS Table, let’s run this query:
select * from POBS
Go
If your result was more that 0 rows affected, like mine here, then you’ve got some data in the POBS table that will be affecting
your import / export performance.
Scroll down for how to clean the POBS table.
How To Clean Your POBS Table Data in MS SQL Using The
Command-Line
Ok, once you’re this far, the cleaning part is easy. Simply run the following command
delete from POBS
Go
That’s it. You’re done and you POBS table is now empty. Make sure to read the recommendations at the end of this article.
How To Check Your POBS Table in MS SQL using Management Studio
If you’ve got Microsoft SQL Management Studio or something similar, then follow these steps to clean out your POBS table.
1) Login to Microsoft SQL Management Studio
Make sure to login as the “sa” user using SQL Server Authentication.
2) Find the POBS table
Start by finding your database in the Object Explorer window.
Expand the Tables sub-entry and scroll down until your find
“dbo.POBS” which is the POBS table. Highlight the table and click the “New Query” button on the toolbar at the top of the
screen.
3) Check for entries
Type the following in the query window:
select * from POBS
Click the “! Execute” button on the toolbar.
You might an empty table or you might see a result like this:
How To Clean Your POBS Table Data in MS SQL Using Management
Studio
Ok. If you have data, then let’s delete everything from the entire table. It’s a simple command. Type:
delete from POBS
Click Execute.
How To Check Your POBS Table Data in Oracle XE
If you’re using Oracle Database Express Edition 10g, aka Oracle XE, the free database that ships with Primavera P6 version 8.x,
then you’ll need to follow these steps to check and clean your POBS table.
1) Open the Database Home Page
Some versions may differ, but I have a Windows program entry in my start menu called “Goto Database Home Page” under the
Oracle Database Express Edition 10g folder. Once you get the home page up in a browser, you’ll need to login with the
appropriate user to access the proper tables.
In this case, you can login with “admuser”. Again hopefully you know the password.
2) Run the SQL command.
From here, you’ll want to access the menu on the large SQL icon and choose “SQL Commands -> Enter Command“.
Once you’ve got a blank command-entry screen loaded, you’ll type in the following:
select * from POBS
Then click the Run button. You should now know if your POBS table has any data in it or not. If it does, continue on to the next
section.
How To Clean Your POBS Table Data in Oracle XE
In Oracle XE, deleting entries from the table is very straightforward. In the SQL command window, type in the following:
delete from POBS
Your POBS table should now be empty.
However, with Oracle XE, it’s also necessary to disable 2 triggers by running the following SQL commands – as per Oracle
support. Run each one separately, not together, as you did the delete command.
alter trigger rt_pobs disable
alter trigger rt_pobs_del disable
and now it’s done.

More Related Content

Similar to Pobs cleanup-steps-nauman

Generic steps in informatica
Generic steps in informaticaGeneric steps in informatica
Generic steps in informatica
Bhuvana Priya
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
Matthew Moldvan
 
JPQL/ JPA Activity 2
JPQL/ JPA Activity 2JPQL/ JPA Activity 2
JPQL/ JPA Activity 2
SFI
 
Creating and connecting to odi master and work repositories
Creating and connecting to odi master and work repositoriesCreating and connecting to odi master and work repositories
Creating and connecting to odi master and work repositories
Abdoulaye M Yansane
 
JPQL/ JPA Activity 1
JPQL/ JPA Activity 1JPQL/ JPA Activity 1
JPQL/ JPA Activity 1
SFI
 

Similar to Pobs cleanup-steps-nauman (20)

Mule data bases
Mule data basesMule data bases
Mule data bases
 
lab56_db
lab56_dblab56_db
lab56_db
 
Fixing Oracle Primavera P6’s POBS Syndrome
Fixing Oracle Primavera P6’s POBS SyndromeFixing Oracle Primavera P6’s POBS Syndrome
Fixing Oracle Primavera P6’s POBS Syndrome
 
Generic steps in informatica
Generic steps in informaticaGeneric steps in informatica
Generic steps in informatica
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
 
JPQL/ JPA Activity 2
JPQL/ JPA Activity 2JPQL/ JPA Activity 2
JPQL/ JPA Activity 2
 
SQL Database Performance Tuning for Developers
SQL Database Performance Tuning for DevelopersSQL Database Performance Tuning for Developers
SQL Database Performance Tuning for Developers
 
SAS Programming.ppt
SAS Programming.pptSAS Programming.ppt
SAS Programming.ppt
 
Creating and connecting to odi master and work repositories
Creating and connecting to odi master and work repositoriesCreating and connecting to odi master and work repositories
Creating and connecting to odi master and work repositories
 
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 20088323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
 
JPQL/ JPA Activity 1
JPQL/ JPA Activity 1JPQL/ JPA Activity 1
JPQL/ JPA Activity 1
 
Sql interview question part 8
Sql interview question part 8Sql interview question part 8
Sql interview question part 8
 
Ebook8
Ebook8Ebook8
Ebook8
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation Documentation
 
Access tips access and sql part 4 building select queries on-the-fly
Access tips  access and sql part 4  building select queries on-the-flyAccess tips  access and sql part 4  building select queries on-the-fly
Access tips access and sql part 4 building select queries on-the-fly
 
Creating ProLaw Reports using Excel
Creating ProLaw Reports using ExcelCreating ProLaw Reports using Excel
Creating ProLaw Reports using Excel
 
Automation Of Reporting And Alerting
Automation Of Reporting And AlertingAutomation Of Reporting And Alerting
Automation Of Reporting And Alerting
 
Using Mysql.pptx
Using Mysql.pptxUsing Mysql.pptx
Using Mysql.pptx
 
154090896 installation-of-oracle-database-12c
154090896 installation-of-oracle-database-12c154090896 installation-of-oracle-database-12c
154090896 installation-of-oracle-database-12c
 
Access tips access and sql part 3 practical examples
Access tips  access and sql part 3  practical examplesAccess tips  access and sql part 3  practical examples
Access tips access and sql part 3 practical examples
 

Recently uploaded

Beyond the Codes_Repositioning towards sustainable development
Beyond the Codes_Repositioning towards sustainable developmentBeyond the Codes_Repositioning towards sustainable development
Beyond the Codes_Repositioning towards sustainable development
Nimot Muili
 
Agile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptxAgile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptx
alinstan901
 
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTECAbortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Riyadh +966572737505 get cytotec
 

Recently uploaded (15)

How Software Developers Destroy Business Value.pptx
How Software Developers Destroy Business Value.pptxHow Software Developers Destroy Business Value.pptx
How Software Developers Destroy Business Value.pptx
 
Beyond the Codes_Repositioning towards sustainable development
Beyond the Codes_Repositioning towards sustainable developmentBeyond the Codes_Repositioning towards sustainable development
Beyond the Codes_Repositioning towards sustainable development
 
Safety T fire missions army field Artillery
Safety T fire missions army field ArtillerySafety T fire missions army field Artillery
Safety T fire missions army field Artillery
 
Leaders enhance communication by actively listening, providing constructive f...
Leaders enhance communication by actively listening, providing constructive f...Leaders enhance communication by actively listening, providing constructive f...
Leaders enhance communication by actively listening, providing constructive f...
 
Dealing with Poor Performance - get the full picture from 3C Performance Mana...
Dealing with Poor Performance - get the full picture from 3C Performance Mana...Dealing with Poor Performance - get the full picture from 3C Performance Mana...
Dealing with Poor Performance - get the full picture from 3C Performance Mana...
 
internal analysis on strategic management
internal analysis on strategic managementinternal analysis on strategic management
internal analysis on strategic management
 
International Ocean Transportation p.pdf
International Ocean Transportation p.pdfInternational Ocean Transportation p.pdf
International Ocean Transportation p.pdf
 
Reviewing and summarization of university ranking system to.pptx
Reviewing and summarization of university ranking system  to.pptxReviewing and summarization of university ranking system  to.pptx
Reviewing and summarization of university ranking system to.pptx
 
Marketing Management 16th edition by Philip Kotler test bank.docx
Marketing Management 16th edition by Philip Kotler test bank.docxMarketing Management 16th edition by Philip Kotler test bank.docx
Marketing Management 16th edition by Philip Kotler test bank.docx
 
Independent Escorts Vikaspuri / 9899900591 High Profile Escort Service in Delhi
Independent Escorts Vikaspuri  / 9899900591 High Profile Escort Service in DelhiIndependent Escorts Vikaspuri  / 9899900591 High Profile Escort Service in Delhi
Independent Escorts Vikaspuri / 9899900591 High Profile Escort Service in Delhi
 
Intro_University_Ranking_Introduction.pptx
Intro_University_Ranking_Introduction.pptxIntro_University_Ranking_Introduction.pptx
Intro_University_Ranking_Introduction.pptx
 
Agile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptxAgile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptx
 
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTECAbortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
 
Strategic Management, Vision Mission, Internal Analsysis
Strategic Management, Vision Mission, Internal AnalsysisStrategic Management, Vision Mission, Internal Analsysis
Strategic Management, Vision Mission, Internal Analsysis
 
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
 

Pobs cleanup-steps-nauman

  • 1. Before you Start I highly recommend you make a backup of your database prior to running any SQL commands. If you break something, you’ll want to have a contingency plan. How To Check Your POBS Table Data in MS SQL Using The Command-Line If you’re using Microsoft SQL Express as your Primavera database engine, then you might have also installed the handy Microsoft SQL Server Management Studio to manage your databases. If you did, you should see it in your Start->All Programs list in Windows. In case you don’t have SQL Server Management Studio, you can still dig in using the SQLCMD and the command line. What we want to do here is to check the POBS table in our Primavera database for entries. If it’s empty, good. If it’s not, then we’ll clean it up. 1) Open a Command Prompt in Windows.
  • 2. 2) Login to your SQL Express database engine with the following command: sqlcmd -S server1SQLExpress -U SqlUserAccount -P SqlPassword On my system, this looks something like this: sqlcmd -S localhostSQLExpress -U sa -P Prima123Vera It’s best to login with the “sa” user – hopefully you know the password. You might try “Prima123Vera” if you don’t – it was used in a lot in install guides. 3) Get a listing of databases on your system If your login was successful, you should see a prompt that looks like “1>”. That means you’re in. Let’s get a listing of all of the databases in your install. Type the following at the prompt:
  • 3. SELECT name from sys.databases Go These are on separate lines. You should see a list of all of your databases. Now let’s pick one. 4) Set a database to use Once you’ve identified your database name, you want to tell SQL that you’ll be working inside that db. Type this: use my_db_name_here Go Here’s what you should get in response. 5) Query the POBS Table To see what data is in the POBS Table, let’s run this query:
  • 4. select * from POBS Go If your result was more that 0 rows affected, like mine here, then you’ve got some data in the POBS table that will be affecting your import / export performance. Scroll down for how to clean the POBS table. How To Clean Your POBS Table Data in MS SQL Using The Command-Line Ok, once you’re this far, the cleaning part is easy. Simply run the following command delete from POBS Go That’s it. You’re done and you POBS table is now empty. Make sure to read the recommendations at the end of this article.
  • 5. How To Check Your POBS Table in MS SQL using Management Studio If you’ve got Microsoft SQL Management Studio or something similar, then follow these steps to clean out your POBS table. 1) Login to Microsoft SQL Management Studio Make sure to login as the “sa” user using SQL Server Authentication. 2) Find the POBS table Start by finding your database in the Object Explorer window.
  • 6. Expand the Tables sub-entry and scroll down until your find “dbo.POBS” which is the POBS table. Highlight the table and click the “New Query” button on the toolbar at the top of the screen. 3) Check for entries Type the following in the query window: select * from POBS
  • 7. Click the “! Execute” button on the toolbar. You might an empty table or you might see a result like this: How To Clean Your POBS Table Data in MS SQL Using Management Studio Ok. If you have data, then let’s delete everything from the entire table. It’s a simple command. Type:
  • 8. delete from POBS Click Execute. How To Check Your POBS Table Data in Oracle XE If you’re using Oracle Database Express Edition 10g, aka Oracle XE, the free database that ships with Primavera P6 version 8.x, then you’ll need to follow these steps to check and clean your POBS table. 1) Open the Database Home Page Some versions may differ, but I have a Windows program entry in my start menu called “Goto Database Home Page” under the Oracle Database Express Edition 10g folder. Once you get the home page up in a browser, you’ll need to login with the appropriate user to access the proper tables. In this case, you can login with “admuser”. Again hopefully you know the password.
  • 9.
  • 10. 2) Run the SQL command. From here, you’ll want to access the menu on the large SQL icon and choose “SQL Commands -> Enter Command“. Once you’ve got a blank command-entry screen loaded, you’ll type in the following: select * from POBS
  • 11. Then click the Run button. You should now know if your POBS table has any data in it or not. If it does, continue on to the next section. How To Clean Your POBS Table Data in Oracle XE In Oracle XE, deleting entries from the table is very straightforward. In the SQL command window, type in the following: delete from POBS Your POBS table should now be empty. However, with Oracle XE, it’s also necessary to disable 2 triggers by running the following SQL commands – as per Oracle support. Run each one separately, not together, as you did the delete command. alter trigger rt_pobs disable alter trigger rt_pobs_del disable and now it’s done.