2010-12-24

new Apex patch set (4.0.2.00.07) available

The new available patch set for Oracle Application Express (4.0.2.00.07) is a cumulative patch (that mean that includes the previous patch set release and additional product fixes). It can be applied to Oracle Application Express release 4.0.0.00.46, 4.0.1.00.03 and 4.0.2.00.06


Check the Release notes and the bugs fixed list

Be advised that there is a changed behavior: Row Searches on Interactive Reports No Longer Search for Filter Disabled Columns.

2010-12-21

First Beta of SQL Navigator 6.5

Quest announced the release of the first beta of SQL Navigator 6.5.

Some problems already reported by users (in the Beta forum and support) are already fixed and some others are in resolution.

Some of the problems (and lacking features) that I found annoying in previous versions that were fixed are:
- Multi lines dbms output is not highlighted completely in Spool
- Close Code Editor when closing the last remaining tab - new preference included
- Quoted object name is mixed up with normal object name in object selector
- SQL navigator hang when print code editor
- Open File windows to have the same list of file types
- Find Recycle bin Objects is not disabled when Find Objects is running
- Allow to stop Code Search when searching
- Date is cut off when export from data grid
- Add shortcuts to View Differences

As usual the beta versions are not to be used in production systems and any feedback should be given by the beta forum.
Download and start testing!

2010-12-20

PL/SQL Challenge version 1.8

PL/SQL Challenge was upgraded to 1.8.
The main new features are the options to submit your own ideas for quizzes and to create your public player profile. A side change but I think very important is that now it's not showed the difficulty of the today's quiz.

Registration is free. Go learn! Go play!

Mod pl/sql GET limits

A reader asked me for a translation of some part of a previous post that was in Portuguese (very small part but ...:-)):

From the documentation:

"When using the GET method, parameters are passed using a query string. The limitation of this method is that the length of the value in a name-value pair cannot exceed the maximum length for the value of an environment variable, as imposed by the underlying operating system. In addition, operating systems have a limit on how many environment variables you can define.

Do you remember? The twelve days of christmas



Best: Goofy's to Donald's "Five golden rings!" :"Hey, that's my line!, I'm gonna take yours! Four calling birds!")
:-)

2010-12-16

Oracle Magazine January/February 2011 available

January/February 2011
BC Cover
Click the image to look inside
Update: direct link for facebook version (it doesn't need subscription info)

2010-12-10

TIOBE Programming Community Index for December 2010

PL/SQL in 23rd in TIOBE Index for December 2010. It's was in 20th place last month (november 2010)!
It was in 13th in 2008 and 2007 in the same month!

2010-12-09

Fim do Dia

Fim do Dia (No Lado Quente Da Saudade)
Mafalda Veiga


The most asked question about oracle from newbies

The most asked question that newbies ask me when starting using Oracle is:
How to create an "autonumber" column?

Unfortunately there is not way to directly create that (or to associate a sequence to a table for future reference).
You have to:

2010-12-06

Protected Dynamic Web Pages from misused access

Sometimes you will want to protected your Dynamic Web Pages from misused (non-normal) access not related with access permissions. You will do it to avoid http traffic and database load for requests that are issued by the use of the web site or web application.

I will use the example of PL/SQL pages using the Oracle Web Toolkit and mod_plsql gateway. Distinct gateways or programming languages will have similar "web session" variables.

Last Christmas traduzido

Today I translated the "Last Christmas" song to Portuguese.
Hoje traduzi a canção "Last Christmas".


2010-12-04

Contar o número de registos em todas as tabelas

This is the portuguese version of a previous post:Rows count for every table.

Foi-me pedido para traduzir um post anterior.

Apresento aqui um Script para mostrar o número de registos (linhas) para todas as tabelas.

2010-12-03

Firefox has a problem with Windows?

I just found out this very funny image of "Firefox has a problem with windows"

SQL Navigator Tips and Tricks videos

Quest software has a series of videos called "Toad Tips and Tricks Video Series" that provide Tips that can also be used with SQL Navigator (so it could be used for a "SQL Navigator Tips and Tricks videos Series" :-) ).
Two of those features are the Quest SQL Tracker (called Oracle SQL Tracker in TOAD) and the Code Roadmap.

I really like Quest SQL Tracker because it allows to capture the SQL statements being executed from windows applications running against the Oracle database, see a list of the bind variables issued from those statements, associated times, etc..

2010-12-02

Oracle Open Our Windows - Tom Kyte em Portugal

O evento que mencionei há atrasado trocou de nome para "Open Our Windows" e já tem agenda.

Para além do Tom Kyte também estará presente Paul Done, especialista Exalogic.

Eu e dois colegas apresentaremos um case study do uso da DB Oracle no sistema de Informação da Universidade do Porto.

Dia 16 de Dezembro em Lisboa.

2010-11-29

Error and Log Libraries

In this series of posts about frameworks for PL/SQL, today I present the links for the free PL/SQL Error and Log Libraries that I know of:
Quest Error Manager also called QEM
Log 4 PLSQL
Logger
PL/SQL Log & DBug Library
PLJ_LG

I use QEM as I have showed in a previous post.

2010-11-28

Updates on the free programs I use

In November two of the best free programs I use got updated (mozilla firefox got it's update on October):
VLC: a cross-platform multimedia player that plays most multimedia files format (like .flv, .wmv, .avi, .mkv,...) as well as DVD, Audio CD, VCD, and also various streaming protocols.
7-zip: a Windows utility for manipulating archives. Formats 7z, ZIP, GZIP, BZIP2 and TAR are supported fully and other formats can be unpacked.

Another program I recommend it's "Spybot - Search & Destroy" detects and removes spyware for Windows gets updated on it's detection files frequently. It's like an antivirus program, I have to have it in my windows OS.

2010-11-26

LISTAGG: 11g r2 new feature

LISTAGG it's a new aggregate function in Oracle 11g release 2. It performs string aggregation.
LISTAGG can optionally be used as an analytic (i.e. the optional OVER() clause).


LISTAGG Syntax structure:


LISTAGG( [,]) WITHIN GROUP (ORDER BY ) [OVER (PARTITION BY )]


2010-11-25

TIOBE Programming Community Index for November 2010

PL/SQL in 20th in TIOBE Index for November 2010. It's a better position than last month, but it was in 12th place in November 2009!!

PDF and PL/SQL

Some choices are available:

2010-11-24

User Enable Editions troubles and solutions

In Oracle 11g r2 the editions were the main new feature for database developers.

If a user has editions enabled some other user that has nor edition enabled cannot create a synonym to the first user (the one with editions enabled) objects.

You will need to enable also the editions for the second user.

alter user <user2> enable editions; (This clause is not reversible.)

If the schema contains any objects that are not editionable and that depend on editionable type objects in the schema, then you must specify FORCE to enable editions for this schema (otherwise you will get an ORA-38819: user USER2 owns one or more objects whose type is editionable and that have noneditioned dependent objects). In this case, all those objects will become invalid and you need to recompile them.

But be very careful, because you should not have table with object type columns where the object type is in that user (with enable editions)! That's because noneditioned objects like tables cannot depend on editioned objects like object types (you would get an "ORA-04063 table <:table_name> has errors" with those tables).
Solution: move the object types to an user with no "enable editions" set.

BTW (By the way) if you try to create a table depending in an edition object you would get an "ORA-38818 illegal reference to editioned object string.string"
The solution is the same as the above.

Potential Security Issue on Install of Oracle Database 11.2.0.2 and Grid Control 11.1.0.1

Oracle has identified a security vulnerability affecting the Oracle Universal Installer for Oracle Database Server 11g Release 2 Patchset 1 (11.2.0.2) and Oracle Enterprise Manager Grid Control 11g Release 1 (11.1.0.1.0) downloaded before November 16th 2010. This vulnerability may result in the compromise of the Oracle Single Sign-On (SSO) password used to connect to Oracle Support Systems while checking for recommended updates and patches during the initial install of these products.

30 seconds parodies of movies

Because life should not be only work 30 seconds parodies of Movies with bunnies as the protagonists.

update: the link was wrong, sorry about that :-(

RSS and PL/SQL

In answer to a friend request, just two pointers:
Lucas Jellema rss feed reader with several commentaries to improve the code
Tyler Muth rss producer

Do you know of others?

2010-11-19

Last Christmas: versão David Fonseca / Last Christmas: David Fonseca version

David Fonseca num video magnífico (ou melhor 9) com a sua versão da música de natal: "Last Christmas".
Nota: a música somente começa aos 0:15

David Fonseca (portuguese musician) in a fabulous video (or should I say 9) of his version of the "Last Christmas"
Note: the music only start at 0:15

Better "hot patching" on 11.2.0.2

I had missed this info: With Oracle version 11.2.0.2 it's much less likely to disrupt sessions that are using packages that are recompiled in another session:

2010-11-18

JSON by PL/SQL

JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It's used for communication with javascript (AJAX).
A introduction to the format can be found here.

2010-11-17

Caffeine

If you as me didn't knew that google new index is called Caffeine ( :-) ) and what improvement it has brought to the Google search read this post.

For people you do not have the slightest idea how the Google search work I recommend the following video.

What is planned for Oracle Application Express 4.1

For me the most important issues that are planned for APEX 4.1 are:

  • Charting - Provide for chart rendering without using Flash (to enable display on mobile devices).
  • Error Handling - Improve error handling and user-defined exception processing.
  • Development for Mobile Applications – Include themes and HTML templates suitable for smart phones and mobile devices.
  • Interactive Reporting – Allow multiple reports on one page and support pivot queries.
  • Tabular Forms – Allow multiple tabular forms on one page and continue to expand tabular forms validations.
  • Master-Detail-Detail – Allow the generation of pages to support master-detail-detail relationships.
  • Modal Dialogue - Add ability to display a dialog on top of a page (the rest of the page will be grayed out).

2010-11-16

How to check the pl/sql web output with cookies

In the previous post "How to check the pl/sql web output" I show how you can check the pl/sql web output in code with minimal initialization.
Today I will show how you can make a cookie emulation or put other CGI environment variables in the pl/sql "web environment" variables.

Steven Feuerstein share advice for Developers video

It's dated from August but it's always interesting and actual

2010-11-15

How to check the pl/sql web output

If you use the pl/sql web toolkit sometimes you will want to check the web output that you are creating.
You can use a browse, but maybe you do not have a web server (with the pl/sql gateway) or the EPG configured, or you want to unit test inside PL/SQL or to see the result before pl/sql gateway mess with the http header.

LiveCD Oracle Solaris 11 Express 2010.11 is available

Oracle Solaris 11 Express 2010.11 is now available and a LiveCD version for x86 is provided so administrators have an opportunity to explore its environment without installing it on a system.

Nem todos os alimentos são perigosos fora do prazo

A saber:

Os alimentos em que surge a expressão "consumir de preferência antes de..." (ou "antes do fim de...") podem ser consumidos após o prazo sem risco de intoxicação alimentar, mas "a empresa já não garante" que estejam em "condições normais",(...) "Se calhar, o sabor já não é tão bom. Se calhar, já tem um bocadinho de ranço. Mas não faz mal."

2010-11-14

Access security in mod_plsql or EPG

With mod_plsql or EPG (embedded pl/sql gateway) all the procedures (that meet the conditions) are available to be accessed by the web. That could be a security problem if you do not protect your procedure for that.
mod_plsql and EPG (DBMS_EPG) provide two way to deal with that:

2010-11-13

Oracle Magazine November/December 2010 available

November/December 2010
BC Cover
Click the image to look inside
Update: direct link for facebook version (it doesn't need subscription info)

2010-11-12

XHTML: why?

I agree with Brain Cray that XHTML was/is not really needed and provided no actual benefits.
10 years later and where XHTML get us? It gave work, it gave headaches, ...


Simon Pieters researched the XML-compliance of mobile browsers and concluded
the claim that XHTML would be needed for mobile devices is simply a myth

A Great introduction to PL/SQL

If you want to learn PL/SQL here is a great introduction to PL/SQL written by Mike Smithers.

2010-11-10

What people would do without internet?

The Muppets have an answer!

Improving the classics?

As only Muppets can do...

Universidade do Porto no 250º lugar do ranking "Times Higher Education"

Universidade do Porto (U.Porto) no 250º lugar das melhores universidades do ranking "Times Higher Education" (correspondendo ao 106º lugar das europeias)
Ler a notícia

Alternatives for PL/SQL Gateway

A attendee of my presentation on OPP 2010 Brussels notice an error in one URL in my presentation and asked me more info in the alternatives for PL/SQL Gateways.
So I provide here my investigation on that (please be free to help me improve this list) with the distintive features of each alternative.

2010-11-09

Brincando com o Zé Pedro

Eu não vi este episódio do Contemporâneos mas a RTP disponibilizou para a gargalhada!

O "vai mas é trabalhar como as pessoas!" à fala com o Zé Pedro dos Xutos.

Nostalgic mood....or maybe not?

Yesterday I remember a music from a computer game...and I found it in Youtube.
The game was Redneck Rampage (from 1997!) and was an "in your face shooter"...the music a "country" rock...
I remembered "Mac Donalds can give my b*tt!" line :-) and the "You can't kill me..."

2010-11-08

Google's Logos

Today it's the 115 anniversary of the discovery of the X-rays.
I discovered that by the change in the google logo :-).

If you, like me, are curios about previous Google's logos (BTE they are called Doodles) check the google's logos site (it's not up-to-date - I think it only shows previous ones and not actual ones)

So many Doogles for several countries and I was not able to find one about Portugal.

Inline Database link

Database links it's a feature that I normally use but I'm not used to create them.
When I created them I relayed the connection to the tnsnames file

2010-11-02

SQL Navigator 6.4 released

Quest released a new version of SQL Navigator. Mainly it corrects some bugs and redefines the filters use (now you have to save the filter before using it, but stores the filters from session to session).
Warning: don't name you filter using the % sign (doesn't work = bug already reported).

Check the Release Notes.

Oracle SQL Developer 3.0 Early Adopter 1

It's available since October the Oracle SQL Developer 3.0 Early Adopter 1.

Some of the new features are the DBMS Scheduler support, PDF generation from the output and debugging of anonymous blocks of PL/SQL code


Update: links removed -> final version 3.0 available

2010-10-28

Last day for OPP/APEXposed 2010 in Europe

It's over :-(

Some very interesting sessions and conversations.
All of the attendees tried to get the most of these two days.

2010-10-27

OPP/APEXposed 2010 Europe 1st day

Today started the first OPP (oracle pl/sql programming) and APEXposed Conference in Europe.

2010-10-25

QEM 1.4.1 released

A new version of Quest Error Manager is available

PL/SQL Challenge version 1.7

PL/SQL Challenge was upgraded to 1.7.
The main feature for everybody is to be able to access to all past quizzes by topic, difficulty or date, and then drill down to see a new, more detailed description of the quiz.
You need to register so have access to that, but registration is free.

Go there, learn and, if possible, play!

2010-10-22

PL/SQL going down in TIOBE Index

PL/SQL in 23th in TIOBE Index for October 2010.
A drop of 10 places in one year!

Of course that index is not very accurate, but even so I would not expect a drop like this one, specially with PL/SQL Challenge that was created this year (ok...it's not a very index (meaning Google, etc.) friendly site), and the APEX grow.
I think that one reason for that is that with APEX the PL/SQL community use APEX as a label/post and not mention PL/SQL when writing/posting code for it.

2010-10-20

"The Wheel of Time"'s Towers of Midnight is almost here!

"The Wheel of Time"'s Towers of Midnight (the 13th book) will be published in November 2nd.

Tom Kyte em Portugal!

"Está a ser desenhado para o próximo dia 16 de Dezembro um evento em Lisboa, Portugal, chamado "Open Your Windows", que terá como orador principal Tom Kyte. Estarão presentes outros oradores nacionais e internacionais."

Less that one week


Less than a week for the 1st Oracle PL/SQL Programming Conference (OPP) in Europe (in Brussels)!
And also the 1st APEXposed in Europe!

I will be presenting a session about "Advanced Web Programming" (outside and beyond APEX)
"In this session we will discuss how to provide security (avoid sql/injection, backlisting and whitelisting program access, etc.. ), to avoid unnecessary DB processing (use of client cache, ...),to add error management to your PL/SQL Web Toolkit programs and to make your website more Google friendly.”


2010-10-12

Clear public global variables

Sometimes you have public package global resources like variables and cursors.
Besides compiling the package that also clears those variables you can use:

2010-10-11

Oracle SQL Developer Data Modeler 3 Early Adopter 1

Oracle released an Early Adopter for the version 3.0 of Oracle SQL Developer Data Modeler.

Most significant additions to the product are

* Integrated with Subversion supports collaborative development and version control
* User defined design rules and transformations
* Integrated reports

update: links removed ...final version available

How to copy the grants given to a user to another

Suppose that you have a user USER_BASE that grant rights to USER1 and you want to grant those same rights to USER2.
You can use the following script in USER_BASE (change USER1 and USER2 literals for your user names) and run the output in USER_BASE.

How to copy synonyms from one user to another

Several times I'm asked this question:
How to copy synonyms from one user to another?

Here is the script you should use in the original user

2010-10-08

Oracle SQL Developer Data Modeler is now Free!

If you, like me, missed the news be aware that Oracle SQL Developer Data Modeler is now Free! (I think you already knew that from the title of this post :-))

Quem está farto da música do Pingo Doce?

Para esses o Jaimão fez uma versão para maiores de 16 anos...(talvez...sei lá)

2010-10-05

100 anos de República!

Parabéns à República (de Portugal) pelo seu aniversário.

Hoje cheguei à conclusão que a idade da reforma em Portugal nunca deveria ultrapassar os 64 anos, pois foi essa a idade em que a República Portuguesa teve uma grande reforma.

2010-10-01

Oracle Magazine September/October 2010 available

September/October 2010
BC Cover
Click the image to look inside
Update: direct link for facebook version (it doesn't need subscription info)

2010-09-29

Oracle 12x?

In a group forum I follow in linkedin appeared this question:

What would be the letter to be used in the next version of Oracle Database: 12.
My answer was:
If they change from 12g my bet would by 12e for exadata or just for logic.
What logic?
8i..10g..12e..14c..16a
I know you can figure out the logic behind that :-)

What do you think?

2010-09-24

TIOBE Programming Community Index for September 2010

PLSQL in 20th in TIOBE index (September 2010) was 14th last year (September 2009) and 13th two years ago (September 2008).

2010-09-23

QEM 1.4.0 available

A new version (1.4.0) of Quest Error Manager is available

Changes since previous version (1.3.8)
----------------
* add error_category_name field to error_info_rt
* minor re-factoring
* add more last_* functions and last_error_info function to return the record
* add option to disregard the remaining_context in the message

Rossana

Hoje devido a uma conversa ao almoço recordei que aina não tinha mencionado aqui a Rossana.
Esta cantora Espanhola é uma das perferidas pelo meu filho para dormir no automóvel.
Eu acho que ela tem umas músicas alegres e positivas com um jeito muito latino.
Aqui vou deixo algumas das suas canções que o meu filho gosta.

2010-09-22

Conditional Compilation patch level support

As I reported in a previous post the last oracle patch for 11g brings new features at least to a package.

Using conditional compilation we can test for an Oracle version and release using the DBMS_DB constants. For instance for testing if the oracle version is at least 11.2 you could use:


$IF (DBMS_DB_VERSION.version=11 AND DBMS_DB_VERSION.release>1)
OR DBMS_DB_VERSION.version>11 $then
<your code>
$END


But, there is no patch level (the called "4th digit") constant in DBMS_VERSION.
I.e. we only have access to the first and second "digit" in 11.2.0.2.

One workaround would be to create a user package which contains the value that test that value in the conditional compilation.
This would need you to do a manual process to update the value or you could
automate the update using the version number from v$version and creating the source.

O que é importante...

Ontem dois dos três canais generalistas em sinal aberto (RTP, SIC, TVI) abriram o seu "Jornal da Noite" com um directo a Paulo Bento.
Essa é que foi considerada a noticia de importancia máxima pelas direções dos respectivos jornais...em deterimento da questão do défice, dos trabalhadores não receberem o 13º mês, de mais um aumento de impostos, etc..
O futebol é o ópio do povo?
Acho que neste momento os Portugueses deveriam estar atentos ao seu nível económico, às suas poupanças, à manutenção de postos de trabalho (ou à questão de arranjar emprego)...

Sobre Futebol:
1- a maioria dos jogadores de topo que são noticia ganham mais num mês que a maioria dos portugueses numa vida inteira.
2- No caso do Scolari por exemplo, deu uma estalada a um jogador adversário e a Federação Portuguesa não o despediu, durante a última prova da selecção ele divulgou que iria para um clube inglês e não foi alvo de sanção pela federação! Agora arranjam uma questão menor para expulsar Carlos Queirós..
3- Como a federação quer tempo de antena (retirando ao Carlos Queirós, à crise, etc.) apresenta uma ideia peregrina de contratar um treinador que ganha balurdios num clube espanhol (estou a falar do Mourinho) depois de ter feito zoar o nome de Paulo Bento. Depois disse que não disse lá vem Paulo Bento aceitar o cargo que o outro não pôde recusar. Pelo menos deu-se emprego a um desempregado (e colocou-se um outro no desemprego mas que vai a tribunal). Eu dúvido que Paulo Bento se tivesse emprego aceita-se o cargo depois desta polémica toda.

Acho que este post por ter conteúdo futubolistico vai ser bastante lido, mas a ideia a reter é:
- a crise existe
- quem a paga (ou vai pagar) somos nós
- as grandes empresas e bancos estão protegidas
- off-shores estão protegidos
- os futebolistas de grandes salários estão protegidos (é considerada actividade de desgaste rápido: mas estar à frente de um monitor e dar cabo da vista é azar ...)

Bom trabalho para todos o que têm a graça de o ter...

"Secreta" não é secreta!

Hoje vi um cabeçalho de uma noticia sobre a "Secreta" Portuguesa.

A questão que coloco é: não é isso uma violação do objectivo da "Secreta" a divulgação de uma operação em curso?

           "De que vale fazer parte de um sociedade secreta se o publicitamos?"
               - In "Call to arms" "

Acho que é perigoso para os envolvidos e estúpido por parte de quem o divulga.

2010-09-20

Comentários não permitidos!

Já viram a mensagem da Senhora Ministra da Eduçação para o ínicio do ano lectivo 2010/2011.
É curioso a forma infantil da mensagem, as expressões (especialmente os olhos) mas, mais curioso é o video não permitir comentários. Talvez os tivesse a mais?

2010-09-18

Blog new url/ nova localização do Blog

Welcome to this new blob location! (previous one was blueeyesfeup.blogspot.com).



Bemvindos a esta nova localização do meu blog! (a anterior era blueeyesfeup.blogspot.com).

PS: serviu esta alteração também para testar o google na actualização do seu índice de blogs!
Actualização 22-10-2010: A actualização do índice do google ao fim de quase um mês ainda não se deu, nem mesmo pesquisando via blogger (deve usar o próprio google) :-(

2010-09-17

2010-09-16

11g Release 2 (11.2.0.2) new UTL_SMTP feature:TLS/SSL

In the recent release of Oracle Database 11g Release 2 (11.2.0.2) the UTL_SMTP package gains a interesting new feature: SMTP Authentication and Encryption.

2010-09-11

Learn how to use Microsoft’s InPrivate Filtering

"Microsoft’s Internet Explorer 8 browser comes with several privacy tools — but the most powerful must be turned on every time a user starts the browser."
And it's not an easy activated feature: see how to use it

Wall Streeit journal explains why that feature is not the default IE8 feature: money, money, money (it's not the ABBA song)

2010-09-09

OPP 2010 Oracle PL/SQL Programming Conference in Brussels


As you probably already know this year an Oracle PL/SQL Programming Conference (OPP) will also be holding in Europe (in Brussels). As will be the APEXposed 2010!
The two conferences are simultaneous and you can participate in both!

Sign up for one conference and attend sessions at either conference!

I will be presenting a session about "Advanced Web Programming" (outside APEX)
"Introduced in Oracle 8.1.6. the PL/SQL Web Toolkit provides a way to get build Internet (on Intranet) database-based websites, REST-like webservices and XML and JSON-like output to the Web.

2010-09-02

Oracle Support html version

Someone asked me why the link I used in a previous entry for oracle support was the html version and not the new flash one.
My DBAs had several problems with the flash version so I was adviced to use mainly the html version.
I (and he) find it faster and productive.

Be aware that the html version lacks these features:

* Systems
* Projects
* Healthchecks
* Patch Advice and Recommendations
* Inventory Reporting
* On Demand Portal Functionality
* CRM On Demand Service Requests and Knowledge

(source)

2010-08-28

ORA-600: kqd-objerror$

I didn't have an ORA-600 from some time (not that I miss them :-) ) when developing and testing.
Yesterday I had an ora-600: [kqd-objerror$]when compiling a trigger.
My DBA found the solution

2010-08-27

Windows users be aware!

"If attackers can dupe users into visiting malicious Web sites or remote shares, or get them to plug in a USB drive -- and in some cases con them into opening a file -- they can hijack a PC and plant malware on it."

Read the article on computerworld

2010-08-10

SQL Navigator 6.3.1 available

You can find here a download link for SqlNavigator 6.3.1 version.

"v6.3.1 patch will be released on our Support Link site soon, and it is available on request. The patch fixed the following items:

- The data grid could not handle large dataset, and Exporting large number of rows and when export finishes, SQL Navcloses.
- Formatter:  formats wrong after the package/procedure separator
- Request to support User Profile with TNS_ADMIN=%USERPROFILE%
- Issue with tab chars and executing a selected SQL.
- SQL*Plus command highlight were  broken (Regression 6.2)
- Nav 6.2.1 does not return "single row subquery returns more than onerow"
- Error with opening Tablespaces node
"

2010-08-06

The impossible Dream

I re-watch the Quantum Leap episode "Catch A Falling Star". It portraits a "Man of la Mancha" musical crew. I really loved this episode.

"The impossible Dream" is the most impressive music in the show.

2010-08-05

Um sugestão para lazer

Nesta altura do ano realiza-se em Santa Maria da Feira mais uma Feira Medieval.
Aconselho vivamente uma visita a este evento. Para além de recriar parte da história de Portugal e um pouco do ambiente medieval, proporciona também uma festa de sabores que no ambiente re-criado se tornam bastante agradáveis.

Um dia bem passado...

2010-08-03

Fortaleza Digital....ou não

    Terminei a leitura do livro de Dan Brown (ou "Dan Castanho" para os portugueses) Fortaleza Digital.
   Não fazia parte da minha lista para ler, mas como descobri esse livro na secretária de uma colega, pedi e ela mo emprestrou.

2010-07-26

O papel da Escola

Hoje recebi um email que vem no seguimento do que pensamos ser a reflexão sobre o estado presente e futuro da educação em Portugal

No email identificava a fonte como sendo a resposta de um estudante do 9º ano




"O papel da escola eu axo que é igual a um papel qualquer de imprensa A4. E de certeza que é. tem a mesma grossura e tudo. Agora se estão a falar, por exemplo, das folhas de Teste que é uma folha A3 duberada ao meio fazendo duas folhas A4, axo melhor que as folhas de teste sejam assim do que só uma folha A4, essas fichas que os professores dão são sempre folhas de formato A4 ou de formato A5. Os testes As professoras metem sempre folhas de formato A4 mas quando são mais as professoras agrafam sempre as folhas e nunca fazem teste com folhas formato A5. Por isso eu axo que as folhas desta escola são iguais às das outras escolas ou de outras empresas."

2010-07-25

QEM version 1.3.8 available

A new version (1.3.8) of Quest Error Manager is available

Changes since previous version (1.3.7)
----------------
* make register_error truncate text_in to 4000 to make the insert possible
(thanks to Bill Pribyl for reporting)
* add truncate to 4000 to DBMS_UTILITY.format* output when storing to table

2010-07-21

Dá-me um abraço

Dá-me um abraço
Canta: Miguel Gameiro


Dá-me um abraço que seja forte
E me conforte a cada canto
Não digas nada que o nada é tanto
E eu não me importo...

2010-07-20

SQL Navigator 6.3 released

New features of SQL Navigator version 6.3 include:

* Automated Code Testing - allows you to describe the expected behavior of a program and have the required code for the test case generated - test definitions are stored in a repository so that you can easily update them when required
* Debugging Triggers - gives you more options in which you can use debug triggers - through DBMS_OUTPUT or the optional PL/SQL Debugger - when using a trigger is only fired by activating the particular SQL DML operation (INSERT. DELETE or UPDATE) that the trigger was designed to respond to, and can be done using INSERT. DELETE or UPDATE statements executed from an anonymous PL/SQL block
* New Tablespace Editor - now includes a tablespace VOE to manage tablespace objects, which can be created, edited and dropped - additional information on Data Files and Disk Groups is also available
* New Quest SQL Tracker - monitors SQL statements issued by Windows applications and services that access Oracle

There were also some bug fixes and some enhancements in Code Editor and Trigger editor.

2010-07-12

"Sou eu"

Este fim de semana parece que o meu filho finalmente quebrou a barreira de se tratar por você:
"O Chiquito ..." e já várias vezes usou o "sou eu!".
Falta agora ele perceber quando o tentamos corrigir do uso do género possessivo minha/meu ...
"Não é minha quadro! - é meu quadro!" "não é teu ! é minha!" :-) e depois lá lhe tentamos explicar a diferença...

Tom Kyte: Geek of the Week

It's already 3 weeks past but Tom Kyte was interviewed for simple-talk's "Geek of the Week".

2010-07-09

ORA-38909 in Oracle 11g

Due to yesterday's question in PL/SQL Challenge I was confronted with the idea of having together 'LOG ERRORS' and 'SAVE EXCEPTIONS' in a FORALL statement.

2010-07-08

Opinião de Alice Vieira: O psicólogo

Hoje faço uma transcrição de uma artigo de opinião da Alice Vieira que me fez lembrar algumas situações que também já passei a ouvir alguns pais e avós.
Fonte

Mudança de imagem

Hoje mudei o layout do blog.
Razão principal: queria que as categorias de cada mensagem aparecessem no início (como estava configurado) mas o layout anterior não o permitia, de modo a que o leitor fique de ante-mão a saber quais os assuntos (categorias) da mensagem antes de a ler.
Problema: deixei de conseguir que o blog se adapta-se automaticamente à janela do tamanho da janela do browser.

Espero que os leitores compreendam esta alteração e se tiverem sugestões para melhorar o layout (isto é se tiverem algum problema de leitura derivado às cores usadas) o reportem como comentário a este post.

Contos Folclóricos Hungaros

Alguém ainda se lembra desta série?



O urso: curta metragem

Hoje descobri esta pérola no Youtube: uma curta metragem (cujo autor é Jean-Jacques Annaud) sobre a natureza.
É uma bonita história sobre uma cria de urso (falhando somente, a meu ver, na parte de som, onde me parece que o som da cria é dobrado por um humano).

2010-07-05

Fazer o que ainda não foi feito

Fazer o que ainda não foi feito
canta: Pedro Abrunhosa

Voar

Voar
Canta: Tim (os Xutos), Rui Veloso

Eu queria ser astronauta...o meu país não deixou!
Depois quis ir jogar à bola...a minha mãe não deixou!
Tive vontade de voltar à escola...mas o doutor não deixou!
Fechei os olhos e tentei dormir...aquela dor não deixou...!

2010-07-04

É tão bom

É tão bom ter um filho que num abraço apertado nos diz:
"Gosto muito de ti papá!"

2010-07-01

OPP Conference in Europe


ODTUG will be organizing its first ever OPP (Oracle PL/SQL Programming) conference in Brussels on Oct 27-28.

Steven Feuerstein will be, off course, one of the speakers.

Put that already in your scheduler!

2010-06-30

Digital version of Oracle Magazine July/August 2010 available

Digital version of Oracle Magazine July/August 2010 available

Update: direct link for facebook version (it doesn't need subscription info)

This is Life

This is Life
Cantora (Singer): Amy Macdonald

2010-06-18

News I do not like: Anti-Virus and routers are not secure!

Critical Flaw Found In Almost All Anti-Virus Software
How to Hack Millions of Routers

Deário de um estodante

Hoje enviaram-me isto e é pena que não me fez rir (como eu gostaria) pois acho que tem muito de verdade :-(

......
Deário de um estodante

*29 de Junho de 2009 * paçei o 5º anuh. A p*ta da stora de mat, k é a
nossa dt, n m kria deixar paçar pk eu tnh nega a td menus a ginástica,
pk jogo bem há bola, e o crl... mas a gaija f*deu-se puke a ministra
da idukaxão mandou dizer ao ppl k penxam q mandam aí nas xkolas masé
pa baixarem os kornos k tds os socios com menos de 12 anus teiem de
paçar... axu bem.

*29 de Junho de 2010 * passei o 6º anuh. ainda bem q ainda n fiz 13
anus, q ódpx podia n passar, qesta cena de passar com buéda negas é só
até aos 12...f*da-se, fiquei buéda f*dido na m*rda deste ano, e ó
c*ralho, o pan*leiro do stor d educassão física deu-me a m*rda do 2...
assim tive nega a tudo... ainda bem q a ministra da iduqaxão é
porreira, ela é qé uma sócia sbem: a xqola n serve pa nada, é uma
seca. tive q aprender que os K's se escrevem Q, qomo em "xqola" e não
"xkola", e que "passar" não é qom Ç... a xqola é porreira só pa qurtir
qas damas qd gente se balda...

*29 de Junho de 2011 * Passei o 7º ano. Exte anuh ia chumbando pq tive
nega a qase td menos a área de projetuh, mas aqela cena tb é facil, n
se fax nd... Exte anuh a dt disseme q eu passava pq tinha aprendido
qas fraxex qomexam qom letra maiúscula e pq m abituei a exqrever qom Q
em vez de K, tipuh agora ja xei xqrever "eu qomo qogumelos qom
quentruhs" em vez de "eu komo kogumelos kom kuentruhs". É fixolas,
pode xer qum dia venha a ser um gamela famôzo...

*29 de Junho de 2013 * Passei o 9º ano. Foi buéda fácil, pqu a prof
paxou-me logo. Fui ao quadro xqurever uma sena em qu dezia tipuh
"aquela janela", e eu exqurevi "aqela janela", pqu dixeram-me qu n se
xkqureve "akela", é quom Q e não quom K. Mas a profs desatinou
quomiguh e dixe qu eu tnh qu pôr o U à frente do Q... Pur ixu exte
anuh aprendi qu o Q leva U à frente. No próximuh anuh é o 10º, vou pá
sequndária...

*29 de Junho de 2014 * Aquabei o 10º ano. Não foi muituh difícil só
tive que aprender-mos a não exqureverem quom aberviaturas purque nem
todas as palavras xe puderam aberviar mas ixtu foi uma bequa para o
quompliquado purque quom esta sena do QU em vex de K e das
aberviaturas exqueceramme de quomo é que se faxião os verbuhs nos
tempuhs e nas pexoas, ou lá o que é... Mas a prof disse tass bem que
no prócimo anuh a gente vê ixu.

*29 de Junho de 2015 * Passou o 11º ano. Foi mais fácil que o 10º.
Aprendi que as frases devem ser mais qurtax. E aprendi também que
"ano" não esqureve "anuh". Axo que no prócimo ano vai ser mais
difícil. Purque a xeguir é a faquldade.

*29 de Junho de 2016 * Acabou o 12º. Fiquei buéda confuso porque tive
de aprender a diferenxa entre usar o QU e o C, tipo "esCrever" e não
"esQUrever". Quando eu usava o K era buéda mais fácil... A prof de
português é buéda religiosa e anda a ouvir vozes de deus, porque
dixe-me que eu não merexia passar, mas "xão ordens lá de xima"...

*29 de Junho de 2017 * Já fiz o primeiro ano da faculdade. Estou em
ingenharia cevil. Tive um stor buéda mal iducado que me disse que eu
era um ignorante porque às vezes escrevia com X em vez de CH, S ou C.
Mas o meu pai veio cá com uma moca de rio maior e chegou-lhe a rôpa ao
pelo. E depois fomos fazer queixa do gajo e a ministra despediu-o
porque o gajo, não sei quê, parece que quis vir estragar aqui um muro
nosso. Mas não sei essas senas. O meu pai é que me explicou uma cena
qualquer de "danos murais"... O que é bom é que a ministra da iducação
continua a mandar aqui nestes sócios da faculdade para eles não
levantarem a garimpa contra nós.

*29 de Junho de 2019 * Acabei a minha licenciatura porque a ministra
da iducação disse que tinhamos que passar sempre mesmo que não
tivessemos notas, para não ficarmos astigmatizados. Acho que é uma
cena que dá nos olhos quando se estuda muito. Agora vou fazer um
mestrado e disseram-me que, quando acabar, vou ficar mestre. Eu quero
ser de Kung-Fu.

*29 de Junho de 2021 * Já sou mestre. Afinal não sou de Kung Fu, sou
de engenharia cevil. Os meus profs disseram que eu não devia estar em
mestrado porque ainda não estava preparado, mas eu disse que o meu pai
tinha uma moca de rio maior e que era amigo da ministra e já tinha
mandado um bacano da laia deles para a rua e eles calaramsse. Agora
vou fazer um doutoramento, porque a ministra da iducação diz que se
não deixarem um aluno fazer o doutoramento só por causa das notas, ele
fica com a auto-estima em baixo e isso perjudica a aprendizajem.

*29 de Junho de 2023 * Sou doutor. O meu orientador da tese ficou
muito satisfeito porque eu já não dou erros ortográficos: ao longo
destes dois anos, aprendi a escrever "engenharia civil" em vez de
"ingenharia cevil" e também porque aprendi que a ministra é da
"educação" e não da "iducação", mas lê-se assim. Entretantos casei. A
minha dama chama-se Sónia e os pais dela ficaram muito felizes por ela
ir casar com um doutor em engenharia civil. Ela não sabe ler nem
escrever: só fez até ao 2º ano da licenciatura e depois foi trabalhar
para o Minipreço. Já tá grávida.

*29 de Outubro de 2023 * Nasceu o meu filho! Chamei-lhe Júnior porque
ele é mais novo que eu.

*29 de Agosto de 2029 * O Júnior vai fazer 6 anos daqui a 2 meses.
Devia entrar para a escola este ano, mas estive a pensar muito bem e
não o vou pôr na escola. Ele não precisa daquilo para nada, aprende em
casa. Eu ensino-lhe a ler, que sou doutor, e a mãe ensina-lhe a fazer
contas, que é caixa no Minipreço. A escola não vale nada. Acho que o
sistema de ensino hoje em dia é uma m*rda. No meu tempo é que era bom.

2010-06-15

2010-06-04

Imaginar

Letra da música "Imaginar" da série infantil "O Urso da Casa Azul"

2010-05-27

Can you fix the bug in the following code?

Here is the code:

begin
FOR c_d
IN (SELECT *
FROM table_a
)
LOOP
c_d.id := NULL;

INSERT INTO table_a values (c_d);
END LOOP;
end;


this gives an ORA-00947: not enough values
in the line of "INSERT INTO table_a values (c_d);"

How to fix it?

2010-05-11

How to kill the right SQL Navigator session

Hi

If you have several SQL Navigator Sessions and want to kill one of them due to something (normally SQL Navigator hanged or is doing something and will not abort) try this:
1- open Quest SQL Tracker
2- select all the SQL Navigator processes
3- check which session is not the ones you want to maintain (for that you could, for instance, make a 'select 1 from dual' )
4- check the PID....and using windows's task manager kill the session with that PID (maybe you need to include that column in the task list)

it was very helpful today...

2010-05-10

OracleJVM to Java SE Compatibility

Today a colleague asked me about the java version in Oracle 11g.
I answered him using a query to a 11g r2 DB (it has 1.5.0_10) ...but now i found this "compatibility table"

2010-05-02

Digital version of Oracle Magazine May/June 2010 available

Digital version of Oracle Magazine May/June 2010 available

Update: direct link for facebook version (it doesn't need subscription info)

2010-04-28

Erros de palmatória...para quem?

(...)Quanto maiores são as deficiências dos estudantes, menor é o grau de exigência dos professores. Miguel Morgado reconhece que se foi tornando mais tolerante com as falhas dos alunos e hoje há erros que já não considera "assim tão graves". João Gouveia Monteiro admite que entre a classe docente há uma tendência para nivelar por baixo: "Eu, por exemplo, no primeiro semestre do ano passado, chumbei 75% dos meus alunos e, mesmo assim, considero que não fui rigoroso." Isabel Ferreira confessa que teve necessidade de tornar a sua linguagem mais básica para poder ser entendida pelos alunos. O nível de exigência foi descendo sobretudo porque os alunos têm deficiências de base não só a português como a matemática e a física: "Seria impensável fazer testes com enunciados de há 15 anos. Os resultados seriam desanimadores." João Gouveia Monteiro usa outro exemplo para defender a mesma ideia. "A classificação de 18 valores numa prova de hoje equivale aos 12 valores de há 15 anos", conclui.


http://www.ionline.pt/conteudo/55357-erros-palmatoria-cada-vez-mais-frequentes-universitarios

De quem é a culpa? Quem merece a palmatória?

2010-04-20

Outlook stored rules problem

Today I got in Outlook "Your stored rules appear to have a bad format." when trying to create a rule (and the rules window also got me that problem).

Solution: to start Outlook by command line cleaning all the previous existing rules

C:\Program Files (x86)\Microsoft Office\Office12\Outlook.exe /cleanrules
(change the folder according to your Office installation version and OS version)

2010-04-08

PL/SQL Challenge already started!

"The Challenge is free and simple: you play the quiz each weekday. We keep score. You get ranked. Every three months, the top-ranking players compete in a quarterly championship to award first, second and third prizes. Cash prizes, among others. But that's not all. Every month, we will raffle off other prizes to anyone who played the quiz that month. And the more you play, the greater your chance of winning."

Go play!
http://plsqlchallenge.com/

2010-03-31

PL/SQL Challenge launch moved to 8 April 2010

PL/SQL Challenge launch moved to 8 April 2010

and beta extended till 5 of April

2010-03-30

TIOBE Programming Community Index for March 2010


PL/SQL in 15th in TIOBE index

(check the current index positions at http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html)

Quest Error Manager new version and forum

Quest Error Manager has now a new version (1.3.7)
That version has the following changes (made by me with Steve "blessing"):
1)add trigger to populate environmental info to q$error_context
2)q$error_instance_ir trigger: add web environment variables log (if available)
3)corrected commentaries in example scripts and cleaned unused variables
4)add missing example file from the last versions: QEM in APEX

1) is very important if you want to use partitioned tables

Also a new forum for Quest Error Manager discussion has open http://qem.inside.quest.com/ and I am one of the moderators and will try to answer any question. Some threads from the CodeGen forum where discussions about QEM were made have been moved to this new forum.

2010-03-15

The PL/SQL Challenge will launch on 1 April 2010

The PL/SQL Challenge will launch on 1 April 2010

"The Challenge is free and simple: you play the quiz each weekday. We keep score. You get ranked. Every three months, the top-ranking players compete in a quarterly championship to award first, second and third prizes. Cash prizes, among others. But that's not all. Every month, we will raffle off other prizes to anyone who played the quiz that month. And the more you play, the greater your chance of winning. "

http://www.plsqlchallenge.com

To join Beta Testing http://beta.plsqlchallenge.com

2010-03-03

SQL Developer 2.2.1 released

SQL Developer 2.2.1 is available for download.
"Oracle SQL Developer 2.1.1. is a patch release. A patch release is a full and complete install with a focus on fixing issues not addressed in the main SQL Developer 2.1 release. As such there is no new functionality in the release. In this instance a number of minor feature requests on the SQL Developer Exchange have also been included, where they tie into the features included in the previous release or where they are related to bugs fixed in the path"
-Source

2010-02-03

Amazon dá tiro no pé!

Para quem não sabe na ultima sexta-feira Amazon decidiu retirar da sua lista de livros disponíveis (isto é retirou o botão de comprar) todos os livros da editora Macmillan (que inclui livros da Tor e St. Martin’s Press por exemplo).

O porquê?
1. Tudo começou com o IPAD da Apple! A Macmillan fez um acordo com a Apple para os alguns e-books (livros recentemente lançados e best-sellers em especial) terem o preço de $14.99 (em contraste com o preço anterior disponível na Amazon de $9.99).
2. A razão apresentada pela Amazon é que acha que o preço fica muito alto para um e-book. A verdadeira razão penso ser que o Kindle (o leitor de ebooks da Amazon) vai ficar sem fatia de mercado devido a que pelo mesmo preço ou pouco mais o IPAD faz muito mais que permitir ler e-books. E por $15 os ebooks tornam-se menos apetecíveis (especialmente acrescidos do investimento no kindle)
(Eu acho que $9.99 ou $14.99 por um e-book que não posso vender nem ter nas mãos é um preço alto comparado com o livro em si, mas isso é a minha opinião sobre o modelo de negócio de e-books (com DRM))

Resultado:
1. A Amazon resolveu fazer boicote à venda dos livros (electrónicos e normais) da Macmillan que são um grande número.
2. A Amazon não avisou os clientes disso...que ficaram/ficam confusos
3. a Macmillan em resposta lançou um anúncio pela sua direcção explicando o seu ponto de vista
4. A Amazon por seu lado respondeu num forum pela equipa do Kindle (não pela direcção nem um documento formal :-( ) que capitularam pois a Macmillan tinha o monopólio sobre os seus livros.
(esta resposta da Amazon é ridicula! Estes também têm o monopólio do Kindle, e a Universal sobre os seus filmes etc..)
5. no entanto hoje ainda não estão disponíveis os livros na Amazon.

Quem foi prejudicado?
Os clientes que não perceberam o porquê...os mais astutos simplesmente foram a outros sites tipo Barnes & Nobles, etc
Os autores, especialmente os que lançaram livros recentemente, pois as primeiras semanas são as mais importantes
A Amazon que ficou com má imagem...e que muitos autores afectados (e mesmo alguns que não o foram) que retiraram dos seus sites os links que tinham para comprar os seus livros na Amazon (e os trocaram por outro sítios de compra de livros)

Acho que a Amazon tentou usar a sua posição de grande vendedor online como pressão de uma forma suja! (Assim como muitas companhias tipo FNAC tentam espremer os preços e tentam ganhar o mais possível à custa dos pequenos e mesmo grandes produtores)

O que a Amazon fez de errado a meu ver é que:
1. não tem o monopólio de vendas online (é um major-player mas não o único)
2. A Macmillan tem um grande porfólio de livros e de autores (e de fãs) e se não vende num lado vende no outro ...on-line é fácil
3. focou o "inimigo" no local errado...apresentar vantagens em relação à Apple, deveria tentar baixar o preço do kindle ou desistir de um mercado menos atractivo.
4. O IPAD ganhou publicidade gratuita!

Existem lojas para música no IPOD mais vantajosas que a Apple Store pelo que existe mercado para uma certa competição, o mesmo pode ocorrer nos livros electrónicos.
Tal como nos livros tradicionais podem ser comprados muitas vezes directamente à companhia que o publica as outras lojas conseguem ter preços/serviços mais vantajosos.

Por mim a Amazon perdeu um cliente a curto/médio prazo...pelo mesmo preço irei comprar a outra loja.
O kindle a meu ver morreu a menos que se torne mais versátil (o que duvido) ou mais barato!

2010-01-11

New version of CWE

The CWE (Common Weakness Enumeration) version 1.7 has been posted on the CWE List page.

The Common Weakness Enumeration (CWE™) is a list of single vulnerability types
"It provides a common language of discourse for discussing, finding and dealing with the causes of software security vulnerabilities as they are found in code, design, or system architecture."

"International in scope and free for public use, CWE™ provides a unified, measurable set of software weaknesses that is enabling more effective discussion, description, selection, and use of software security tools and services that can find these weaknesses in source code and operational systems as well as better understanding and management of software weaknesses related to architecture and design."